Spaces:
Runtime error
Runtime error
simonesarti commited on
Commit ·
fb6ad5e
1
Parent(s): 61ad317
final answer tool
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import os
|
|
| 2 |
import gradio as gr
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, InferenceClientModel, PythonInterpreterTool
|
| 6 |
import pandas as pd
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
|
@@ -17,6 +17,7 @@ class BasicAgent:
|
|
| 17 |
VisitWebpageTool(),
|
| 18 |
DuckDuckGoSearchTool(),
|
| 19 |
PythonInterpreterTool(),
|
|
|
|
| 20 |
]
|
| 21 |
|
| 22 |
model = InferenceClientModel()
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, InferenceClientModel, PythonInterpreterTool, FinalAnswerTool
|
| 6 |
import pandas as pd
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
|
|
|
| 17 |
VisitWebpageTool(),
|
| 18 |
DuckDuckGoSearchTool(),
|
| 19 |
PythonInterpreterTool(),
|
| 20 |
+
FinalAnswerTool(),
|
| 21 |
]
|
| 22 |
|
| 23 |
model = InferenceClientModel()
|