Spaces:
Sleeping
Sleeping
Update app.py
Browse filesUpdate imports to include HfApiModel and DuckDuckGoSearchTool
app.py
CHANGED
|
@@ -6,12 +6,14 @@ import pandas as pd
|
|
| 6 |
|
| 7 |
# Import modules and classes from openai and smolagents
|
| 8 |
# import openai
|
| 9 |
-
from smolagents import CodeAgent,
|
| 10 |
|
| 11 |
# Create API keys
|
| 12 |
# openai.api_key = ('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')
|
| 13 |
# GoogleSearch.SERP_API_KEY = 'a2fa0feab384c372147075f190fe5878300bbbb693eb0aced535e5d58189ad70'
|
| 14 |
|
|
|
|
|
|
|
| 15 |
# (Keep Constants as is)
|
| 16 |
# --- Constants ---
|
| 17 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
|
| 6 |
|
| 7 |
# Import modules and classes from openai and smolagents
|
| 8 |
# import openai
|
| 9 |
+
from smolagents import CodeAgent, HfApiModel, DuckDuckGoSearchTool, VisitWebpageTool, PythonInterpreterTool, SpeechToTextTool
|
| 10 |
|
| 11 |
# Create API keys
|
| 12 |
# openai.api_key = ('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')
|
| 13 |
# GoogleSearch.SERP_API_KEY = 'a2fa0feab384c372147075f190fe5878300bbbb693eb0aced535e5d58189ad70'
|
| 14 |
|
| 15 |
+
|
| 16 |
+
|
| 17 |
# (Keep Constants as is)
|
| 18 |
# --- Constants ---
|
| 19 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|