aicodingfun commited on
Commit
1a49665
·
verified ·
1 Parent(s): b9fc43c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,10 +130,10 @@ 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="deepscaler",
134
  # model="mistralai/Mistral-Nemo-Instruct-2407",
135
  messages=messages,
136
- max_tokens=500
137
  )
138
 
139
  # 傳回模型產生的文本
 
130
  # 使用 InferenceClient 呼叫 API 模型產生新題目
131
  completion = client.chat.completions.create(
132
  # model="mistralai/Mistral-7B-Instruct-v0.3",
133
+ model="qwq:32b",
134
  # model="mistralai/Mistral-Nemo-Instruct-2407",
135
  messages=messages,
136
+ max_tokens=1024
137
  )
138
 
139
  # 傳回模型產生的文本