Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,8 @@ import requests
|
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
import spaces
|
| 7 |
-
|
|
|
|
| 8 |
@spaces.GPU
|
| 9 |
def _keep_alive():
|
| 10 |
return None
|
|
@@ -20,8 +21,9 @@ class BasicAgent:
|
|
| 20 |
import os
|
| 21 |
|
| 22 |
model = LiteLLMModel(
|
| 23 |
-
model_id="gemini/gemini-2.
|
| 24 |
api_key=os.environ["GEMINI_API_KEY"],
|
|
|
|
| 25 |
)
|
| 26 |
self.agent = CodeAgent(
|
| 27 |
tools=[DuckDuckGoSearchTool(), PythonInterpreterTool()],
|
|
|
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
import spaces
|
| 7 |
+
import os
|
| 8 |
+
os.environ["LITELLM_LOG"] = "DEBUG"
|
| 9 |
@spaces.GPU
|
| 10 |
def _keep_alive():
|
| 11 |
return None
|
|
|
|
| 21 |
import os
|
| 22 |
|
| 23 |
model = LiteLLMModel(
|
| 24 |
+
model_id="gemini/gemini-2.5-flash",
|
| 25 |
api_key=os.environ["GEMINI_API_KEY"],
|
| 26 |
+
num_retires=5,
|
| 27 |
)
|
| 28 |
self.agent = CodeAgent(
|
| 29 |
tools=[DuckDuckGoSearchTool(), PythonInterpreterTool()],
|