Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -272,7 +272,7 @@ def run_and_submit_all():
|
|
| 272 |
if not api_key:
|
| 273 |
return "Error: GEMINI_API_KEY environment variable not found. Please set it in your Space settings.", None
|
| 274 |
|
| 275 |
-
model = LiteLLMModel(model_id="gemini/gemini-2.0-flash-lite", api_key=AIzaSyAhmwogxZFBtt7_OUsKQGNeOYF7ced39bM)
|
| 276 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
| 277 |
except Exception as e:
|
| 278 |
print(f"Error instantiating agent: {e}")
|
|
|
|
| 272 |
if not api_key:
|
| 273 |
return "Error: GEMINI_API_KEY environment variable not found. Please set it in your Space settings.", None
|
| 274 |
|
| 275 |
+
model = LiteLLMModel(model_id="gemini/gemini-2.0-flash-lite", api_key="AIzaSyAhmwogxZFBtt7_OUsKQGNeOYF7ced39bM")
|
| 276 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
| 277 |
except Exception as e:
|
| 278 |
print(f"Error instantiating agent: {e}")
|