Update app.py
Browse files
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,
|
122 |
-
cache=False
|
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)
|