AMfeta99 commited on
Commit
b4de5ec
·
verified ·
1 Parent(s): 2f2ea20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -118,8 +118,8 @@ from smolagents import load_tool
118
 
119
  image_generation_tool = load_tool(
120
  repo_id="m-ric/text-to-image", # The Hugging Face Space repo
121
- trust_remote_code=True, # ✅ Required to execute downloaded code
122
- cache=False # Optional: disable cache for latest version
123
  )
124
 
125
  '''
@@ -141,7 +141,8 @@ search_tool = DuckDuckGoSearchTool()
141
 
142
  # Load the LLM engine
143
  #llm_engine = HfApiEngine("Qwen/Qwen2.5-72B-Instruct")
144
- llm_engine =HfApiModel("Qwen/Qwen2.5-72B-Instruct")
 
145
 
146
  # Initialize the agent with both tools
147
  #agent = ReactCodeAgent(tools=[image_generation_tool, search_tool], llm_engine=llm_engine)
 
118
 
119
  image_generation_tool = load_tool(
120
  repo_id="m-ric/text-to-image", # The Hugging Face Space repo
121
+ trust_remote_code=True,
122
+ cache=False
123
  )
124
 
125
  '''
 
141
 
142
  # Load the LLM engine
143
  #llm_engine = HfApiEngine("Qwen/Qwen2.5-72B-Instruct")
144
+ #llm_engine =HfApiModel("Qwen/Qwen2.5-72B-Instruct")
145
+ llm_engine= InferenceClientModel("Qwen/Qwen2.5-72B-Instruct")
146
 
147
  # Initialize the agent with both tools
148
  #agent = ReactCodeAgent(tools=[image_generation_tool, search_tool], llm_engine=llm_engine)