Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
-
from smolagents import CodeAgent
|
|
|
|
| 2 |
from retriever import guest_info_tool
|
| 3 |
from tools import all_tools
|
| 4 |
|
| 5 |
# Initialize the Hugging Face model
|
| 6 |
-
model =
|
| 7 |
|
| 8 |
# Combine ALL tools: Main RAG + all auxiliary tools
|
| 9 |
all_agent_tools = [guest_info_tool] + all_tools
|
|
|
|
| 1 |
+
from smolagents import CodeAgent
|
| 2 |
+
from smolagents.models import HfApiModel
|
| 3 |
from retriever import guest_info_tool
|
| 4 |
from tools import all_tools
|
| 5 |
|
| 6 |
# Initialize the Hugging Face model
|
| 7 |
+
model = HfApiModel("HuggingFaceTB/SmolLM-135M")
|
| 8 |
|
| 9 |
# Combine ALL tools: Main RAG + all auxiliary tools
|
| 10 |
all_agent_tools = [guest_info_tool] + all_tools
|