Update app.py
Browse files
app.py
CHANGED
@@ -207,7 +207,7 @@ if prompt:
|
|
207 |
for i in range(1):
|
208 |
print(f"Attempt {i+1}")
|
209 |
if model_name == "gemini-pro":
|
210 |
-
llm = GoogleGenerativeAI(model=
|
211 |
else:
|
212 |
llm = ChatGroq(model=models[model_name], api_key=os.getenv("GROQ_API"), temperature=0)
|
213 |
|
|
|
207 |
for i in range(1):
|
208 |
print(f"Attempt {i+1}")
|
209 |
if model_name == "gemini-pro":
|
210 |
+
llm = GoogleGenerativeAI(model=models[model_name], google_api_key=os.getenv("GEMINI_TOKEN"), temperature=0)
|
211 |
else:
|
212 |
llm = ChatGroq(model=models[model_name], api_key=os.getenv("GROQ_API"), temperature=0)
|
213 |
|