Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -163,10 +163,10 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
|
|
163 |
# 使用 InferenceClient 呼叫 API 模型產生新題目
|
164 |
completion = client.chat.completions.create(
|
165 |
# model="mistralai/Mistral-7B-Instruct-v0.3",
|
166 |
-
model="
|
167 |
# model="mistralai/Mistral-Nemo-Instruct-2407",
|
168 |
messages=messages,
|
169 |
-
max_tokens=
|
170 |
)
|
171 |
|
172 |
response = completion.choices[0].message.content
|
|
|
163 |
# 使用 InferenceClient 呼叫 API 模型產生新題目
|
164 |
completion = client.chat.completions.create(
|
165 |
# model="mistralai/Mistral-7B-Instruct-v0.3",
|
166 |
+
model="deepseek-r1-distill-qwen-32b",
|
167 |
# model="mistralai/Mistral-Nemo-Instruct-2407",
|
168 |
messages=messages,
|
169 |
+
max_tokens=1024
|
170 |
)
|
171 |
|
172 |
response = completion.choices[0].message.content
|