Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
|
|
83 |
{
|
84 |
"role": "system",
|
85 |
"content": """
|
86 |
-
You are an advanced AI assistant designed to generate educational questions. Your task is to create new and diverse questions based on existing question banks. The new questions should be similar in difficulty, style, and structure to the input questions but must not directly replicate them. **All responses must be in
|
87 |
|
88 |
Key Instructions:
|
89 |
1. Maintain the educational purpose of the questions.
|
@@ -130,7 +130,7 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
|
|
130 |
# 使用 InferenceClient 呼叫 API 模型產生新題目
|
131 |
completion = client.chat.completions.create(
|
132 |
# model="mistralai/Mistral-7B-Instruct-v0.3",
|
133 |
-
model="
|
134 |
# model="mistralai/Mistral-Nemo-Instruct-2407",
|
135 |
messages=messages,
|
136 |
max_tokens=1024
|
|
|
83 |
{
|
84 |
"role": "system",
|
85 |
"content": """
|
86 |
+
You are an advanced AI assistant designed to generate educational questions. Your task is to create new and diverse questions based on existing question banks. The new questions should be similar in difficulty, style, and structure to the input questions but must not directly replicate them. **All responses must be in English.**
|
87 |
|
88 |
Key Instructions:
|
89 |
1. Maintain the educational purpose of the questions.
|
|
|
130 |
# 使用 InferenceClient 呼叫 API 模型產生新題目
|
131 |
completion = client.chat.completions.create(
|
132 |
# model="mistralai/Mistral-7B-Instruct-v0.3",
|
133 |
+
model="nvjob/DeepSeek-R1-32B-Cline:latest",
|
134 |
# model="mistralai/Mistral-Nemo-Instruct-2407",
|
135 |
messages=messages,
|
136 |
max_tokens=1024
|