Spaces:
Running
Running
Update app.py
Browse filesChanged back to the Qwen/Qwen2.5-Omni-7B model. I was getting an unknown error before.
app.py
CHANGED
@@ -53,7 +53,7 @@ final_answer = FinalAnswerTool()
|
|
53 |
model = HfApiModel(
|
54 |
max_tokens=2096,
|
55 |
temperature=0.5,
|
56 |
-
model_id='
|
57 |
custom_role_conversions=None,
|
58 |
)
|
59 |
|
@@ -66,7 +66,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
66 |
|
67 |
agent = CodeAgent(
|
68 |
model=model,
|
69 |
-
tools=[final_answer, get_current_time_in_timezone,fetch_weather,calculator], ## add your tools here (don't remove final answer)
|
70 |
max_steps=6,
|
71 |
verbosity_level=1,
|
72 |
grammar=None,
|
|
|
53 |
model = HfApiModel(
|
54 |
max_tokens=2096,
|
55 |
temperature=0.5,
|
56 |
+
model_id='Qwen/Qwen2.5-Omni-7B',# it is possible that this model may be overloaded
|
57 |
custom_role_conversions=None,
|
58 |
)
|
59 |
|
|
|
66 |
|
67 |
agent = CodeAgent(
|
68 |
model=model,
|
69 |
+
tools=[final_answer, get_current_time_in_timezone, fetch_weather, calculator], ## add your tools here (don't remove final answer)
|
70 |
max_steps=6,
|
71 |
verbosity_level=1,
|
72 |
grammar=None,
|