Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -2,13 +2,13 @@ from smolagents import CodeAgent, InferenceClientModel
|
|
| 2 |
from smolagents import VisitWebpageTool, WebSearchTool, WikipediaSearchTool, PythonInterpreterTool,FinalAnswerTool
|
| 3 |
import os
|
| 4 |
|
| 5 |
-
os.getenv("
|
| 6 |
|
| 7 |
class GaiaAgent:
|
| 8 |
def __init__(self):
|
| 9 |
import os
|
| 10 |
-
token = os.getenv("
|
| 11 |
-
print("DEBUG:
|
| 12 |
self.model = InferenceClientModel(
|
| 13 |
max_tokens = 1024,
|
| 14 |
temperature = 0.5,
|
|
|
|
| 2 |
from smolagents import VisitWebpageTool, WebSearchTool, WikipediaSearchTool, PythonInterpreterTool,FinalAnswerTool
|
| 3 |
import os
|
| 4 |
|
| 5 |
+
os.getenv("HF_API_TOKEN")
|
| 6 |
|
| 7 |
class GaiaAgent:
|
| 8 |
def __init__(self):
|
| 9 |
import os
|
| 10 |
+
token = os.getenv("HF_API_TOKEN")
|
| 11 |
+
print("DEBUG: HF_API_TOKEN is", token[:6]+ "...")
|
| 12 |
self.model = InferenceClientModel(
|
| 13 |
max_tokens = 1024,
|
| 14 |
temperature = 0.5,
|