Update app.py
Browse files
app.py
CHANGED
@@ -189,7 +189,8 @@ if groq_api_key and huggingface_api_token:
|
|
189 |
# Inicializar o modelo de linguagem e embeddings
|
190 |
# Initialize the LLM with rate limiting
|
191 |
llm = ChatGroq(groq_api_key=groq_api_key, model_name="llama-3.2-90b-text-preview", temperature=0)
|
192 |
-
rate_limited_llm
|
|
|
193 |
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
194 |
|
195 |
session_id = st.text_input("Session ID", value="default_session")
|
|
|
189 |
# Inicializar o modelo de linguagem e embeddings
|
190 |
# Initialize the LLM with rate limiting
|
191 |
llm = ChatGroq(groq_api_key=groq_api_key, model_name="llama-3.2-90b-text-preview", temperature=0)
|
192 |
+
def rate_limited_llm(**kwargs):
|
193 |
+
return rate_limited_llm_call(llm, **kwargs)
|
194 |
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
195 |
|
196 |
session_id = st.text_input("Session ID", value="default_session")
|