Spaces:
Sleeping
Sleeping
Upload agent
Browse files- agent.json +5 -5
- app.py +4 -4
agent.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
| 3 |
"final_answer"
|
| 4 |
],
|
| 5 |
"model": {
|
| 6 |
-
"class": "
|
| 7 |
"data": {
|
| 8 |
-
"last_input_token_count":
|
| 9 |
-
"last_output_token_count":
|
| 10 |
-
"model_id": "
|
| 11 |
-
"
|
| 12 |
}
|
| 13 |
},
|
| 14 |
"managed_agents": {},
|
|
|
|
| 3 |
"final_answer"
|
| 4 |
],
|
| 5 |
"model": {
|
| 6 |
+
"class": "LiteLLMModel",
|
| 7 |
"data": {
|
| 8 |
+
"last_input_token_count": null,
|
| 9 |
+
"last_output_token_count": null,
|
| 10 |
+
"model_id": "gemini/gemini-2.0-flash",
|
| 11 |
+
"api_base": null
|
| 12 |
}
|
| 13 |
},
|
| 14 |
"managed_agents": {},
|
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import yaml
|
| 2 |
import os
|
| 3 |
-
from smolagents import GradioUI, CodeAgent,
|
| 4 |
|
| 5 |
# Get current directory path
|
| 6 |
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
@@ -9,9 +9,9 @@ from tools.final_answer import FinalAnswerTool as FinalAnswer
|
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
-
model =
|
| 13 |
-
model_id='
|
| 14 |
-
|
| 15 |
)
|
| 16 |
|
| 17 |
final_answer = FinalAnswer()
|
|
|
|
| 1 |
import yaml
|
| 2 |
import os
|
| 3 |
+
from smolagents import GradioUI, CodeAgent, LiteLLMModel
|
| 4 |
|
| 5 |
# Get current directory path
|
| 6 |
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
+
model = LiteLLMModel(
|
| 13 |
+
model_id='gemini/gemini-2.0-flash',
|
| 14 |
+
api_base=None,
|
| 15 |
)
|
| 16 |
|
| 17 |
final_answer = FinalAnswer()
|