Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -128,8 +128,8 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
|
|
128 |
# 使用 InferenceClient 呼叫 API 模型產生新題目
|
129 |
completion = client.chat.completions.create(
|
130 |
# model="mistralai/Mistral-7B-Instruct-v0.3",
|
131 |
-
|
132 |
-
model="mistralai/Mistral-Nemo-Instruct-2407",
|
133 |
messages=messages,
|
134 |
max_tokens=2048
|
135 |
)
|
|
|
128 |
# 使用 InferenceClient 呼叫 API 模型產生新題目
|
129 |
completion = client.chat.completions.create(
|
130 |
# model="mistralai/Mistral-7B-Instruct-v0.3",
|
131 |
+
model="perplexity-ai/r1-1776",
|
132 |
+
# model="mistralai/Mistral-Nemo-Instruct-2407",
|
133 |
messages=messages,
|
134 |
max_tokens=2048
|
135 |
)
|