JasonJy14 commited on
Commit
6bd9be8
·
verified ·
1 Parent(s): ed3a324

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@
4
  # ============================================
5
 
6
  import gradio as gr
7
- from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, HfApiModel, tool
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 = HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
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(