Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import inspect
|
|
| 5 |
import pandas as pd
|
| 6 |
from smolagents import (
|
| 7 |
CodeAgent,
|
| 8 |
-
|
| 9 |
DuckDuckGoSearchTool,
|
| 10 |
WikipediaSearchTool,
|
| 11 |
PythonInterpreterTool,
|
|
@@ -28,11 +28,11 @@ def get_current_date_time() -> str:
|
|
| 28 |
class BasicAgent:
|
| 29 |
def __init__(self):
|
| 30 |
print("BasicAgent initialized.")
|
| 31 |
-
|
| 32 |
-
model =
|
| 33 |
-
model_id="
|
| 34 |
-
|
| 35 |
-
|
| 36 |
)
|
| 37 |
tools = [
|
| 38 |
DuckDuckGoSearchTool(),
|
|
|
|
| 5 |
import pandas as pd
|
| 6 |
from smolagents import (
|
| 7 |
CodeAgent,
|
| 8 |
+
OpenAIServerModel,
|
| 9 |
DuckDuckGoSearchTool,
|
| 10 |
WikipediaSearchTool,
|
| 11 |
PythonInterpreterTool,
|
|
|
|
| 28 |
class BasicAgent:
|
| 29 |
def __init__(self):
|
| 30 |
print("BasicAgent initialized.")
|
| 31 |
+
sambanova_api_key = os.getenv("SAMBANOVA_API_KEY")
|
| 32 |
+
model = OpenAIServerModel(
|
| 33 |
+
model_id="Meta-Llama-3.3-70B-Instruct",
|
| 34 |
+
api_base="https://api.sambanova.ai/v1",
|
| 35 |
+
api_key=sambanova_api_key,
|
| 36 |
)
|
| 37 |
tools = [
|
| 38 |
DuckDuckGoSearchTool(),
|