Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
# ============================================
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool,
|
| 8 |
|
| 9 |
# ============================================
|
| 10 |
# CUSTOM TOOLS FOR ALFRED
|
|
@@ -94,7 +94,7 @@ Always think step by step and use the most appropriate tool for each task.
|
|
| 94 |
|
| 95 |
# Initialize the language model with a specific model ID
|
| 96 |
# Using Qwen2.5-Coder-32B-Instruct (a capable open model)
|
| 97 |
-
model =
|
| 98 |
|
| 99 |
# Create Alfred with all tools
|
| 100 |
alfred = CodeAgent(
|
|
|
|
| 4 |
# ============================================
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, HfEngine, tool
|
| 8 |
|
| 9 |
# ============================================
|
| 10 |
# CUSTOM TOOLS FOR ALFRED
|
|
|
|
| 94 |
|
| 95 |
# Initialize the language model with a specific model ID
|
| 96 |
# Using Qwen2.5-Coder-32B-Instruct (a capable open model)
|
| 97 |
+
model = HfEngine(model="Qwen/Qwen2.5-Coder-32B-Instruct")
|
| 98 |
|
| 99 |
# Create Alfred with all tools
|
| 100 |
alfred = CodeAgent(
|