reichaves commited on
Commit
7d7396a
1 Parent(s): 4800abb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -202,6 +202,9 @@ if groq_api_key and huggingface_api_token:
202
  # Configurar o token da API do Hugging Face
203
  os.environ["HUGGINGFACEHUB_API_TOKEN"] = huggingface_api_token
204
 
 
 
 
205
  # Inicializar o modelo de linguagem e embeddings
206
  rate_limited_llm = RateLimitedChatGroq(groq_api_key=groq_api_key, model_name="llama-3.2-90b-text-preview", temperature=0)
207
  embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
 
202
  # Configurar o token da API do Hugging Face
203
  os.environ["HUGGINGFACEHUB_API_TOKEN"] = huggingface_api_token
204
 
205
+ # Configurar a chave de API do Groq no ambiente
206
+ os.environ["GROQ_API_KEY"] = groq_api_key
207
+
208
  # Inicializar o modelo de linguagem e embeddings
209
  rate_limited_llm = RateLimitedChatGroq(groq_api_key=groq_api_key, model_name="llama-3.2-90b-text-preview", temperature=0)
210
  embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")