Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,7 @@ import sympy as sp
|
|
10 |
from sympy.core.expr import Expr
|
11 |
|
12 |
from Gradio_UI import GradioUI
|
13 |
-
import os
|
14 |
|
15 |
-
# Retrieve HF secret from environment variables
|
16 |
-
hf_token = os.environ.get("HF_TOKEN")
|
17 |
|
18 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
19 |
@tool
|
@@ -95,10 +92,10 @@ final_answer = FinalAnswerTool()
|
|
95 |
model = HfApiModel(
|
96 |
max_tokens=2096,
|
97 |
temperature=0.5,
|
98 |
-
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
|
|
99 |
# model_id='Qwen/Qwen2.5-Coder-14B-Instruct',
|
100 |
custom_role_conversions=None,
|
101 |
-
api_key=hf_token,
|
102 |
)
|
103 |
|
104 |
|
|
|
10 |
from sympy.core.expr import Expr
|
11 |
|
12 |
from Gradio_UI import GradioUI
|
|
|
13 |
|
|
|
|
|
14 |
|
15 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
16 |
@tool
|
|
|
92 |
model = HfApiModel(
|
93 |
max_tokens=2096,
|
94 |
temperature=0.5,
|
95 |
+
# model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
96 |
+
model_id='deepseek-ai/DeepSeek-R1',# it is possible that this model may be overloaded
|
97 |
# model_id='Qwen/Qwen2.5-Coder-14B-Instruct',
|
98 |
custom_role_conversions=None,
|
|
|
99 |
)
|
100 |
|
101 |
|