Spaces:
Sleeping
Sleeping
Commit
·
556e783
1
Parent(s):
e8ad50d
add qwen2.5 with correct agent
Browse files
app.py
CHANGED
|
@@ -254,7 +254,7 @@ Instructions:
|
|
| 254 |
# Generate the chat interface, including the tools
|
| 255 |
|
| 256 |
llm = HuggingFaceEndpoint(
|
| 257 |
-
repo_id="
|
| 258 |
huggingfacehub_api_token=HF_ACCESS_KEY,
|
| 259 |
# model_kwargs={'prompt': system_prompt}
|
| 260 |
# system_prompt=system_prompt,
|
|
@@ -273,8 +273,8 @@ llm = ChatOpenAI(
|
|
| 273 |
|
| 274 |
agent = initialize_agent(
|
| 275 |
tools=tools_list,
|
| 276 |
-
llm=llm,
|
| 277 |
-
|
| 278 |
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
|
| 279 |
# agent_kwargs={"system_message": system_prompt},
|
| 280 |
verbose=True,
|
|
|
|
| 254 |
# Generate the chat interface, including the tools
|
| 255 |
|
| 256 |
llm = HuggingFaceEndpoint(
|
| 257 |
+
repo_id="Qwen/Qwen2.5-14B-Instruct",
|
| 258 |
huggingfacehub_api_token=HF_ACCESS_KEY,
|
| 259 |
# model_kwargs={'prompt': system_prompt}
|
| 260 |
# system_prompt=system_prompt,
|
|
|
|
| 273 |
|
| 274 |
agent = initialize_agent(
|
| 275 |
tools=tools_list,
|
| 276 |
+
# llm=llm,
|
| 277 |
+
llm=chat_llm,
|
| 278 |
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
|
| 279 |
# agent_kwargs={"system_message": system_prompt},
|
| 280 |
verbose=True,
|