Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
-
from smolagents import
|
7 |
|
8 |
# (Keep Constants as is)
|
9 |
# --- Constants ---
|
@@ -16,7 +16,7 @@ class BasicAgent:
|
|
16 |
print("BasicAgent initialized.")
|
17 |
def __call__(self, question: str) -> str:
|
18 |
self.agent = CodeAgent(
|
19 |
-
model=
|
20 |
model_id="anthropic:claude-3.7-sonnet",
|
21 |
api_key=os.environ["OPENROUTER_API_KEY"]
|
22 |
),
|
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
+
from smolagents import OpenAIServerModel, DuckDuckGoSearchTool, PythonInterpreterTool, WikipediaSearchTool, CodeAgent
|
7 |
|
8 |
# (Keep Constants as is)
|
9 |
# --- Constants ---
|
|
|
16 |
print("BasicAgent initialized.")
|
17 |
def __call__(self, question: str) -> str:
|
18 |
self.agent = CodeAgent(
|
19 |
+
model=OpenAIServerModel(
|
20 |
model_id="anthropic:claude-3.7-sonnet",
|
21 |
api_key=os.environ["OPENROUTER_API_KEY"]
|
22 |
),
|