jamesbright commited on
Commit
0f21575
·
verified ·
1 Parent(s): 8dcd53b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  import json
3
- from smolagents import CodeAgent, tool, Tool, FinalAnswerTool, HfApiModel, load_tool
 
4
 
5
  final_answer = FinalAnswerTool()
6
  model = HfApiModel(model_id='Qwen/Qwen2.5-Coder-32B-Instruct')
@@ -216,4 +217,5 @@ with gr.Blocks() as demo:
216
  outputs=[project_output, arch_output, cost_output, deploy_output, meeting_output])
217
 
218
  # Launch the Gradio App
219
- demo(agent).launch()
 
 
1
  import gradio as gr
2
  import json
3
+ from smolagents import CodeAgent, tool, Tool
4
+ , FinalAnswerTool, HfApiModel, load_tool
5
 
6
  final_answer = FinalAnswerTool()
7
  model = HfApiModel(model_id='Qwen/Qwen2.5-Coder-32B-Instruct')
 
217
  outputs=[project_output, arch_output, cost_output, deploy_output, meeting_output])
218
 
219
  # Launch the Gradio App
220
+ #demo(agent).launch()
221
+ agent.run()