aicodingfun commited on
Commit
2866acc
·
verified ·
1 Parent(s): f3d53d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -10,7 +10,7 @@ from huggingface_hub import InferenceClient
10
 
11
  HF_TOKEN = os.environ.get("HF_TOKEN")
12
  client = InferenceClient(
13
- provider="fireworks-ai",
14
  api_key=HF_TOKEN
15
  )
16
 
@@ -129,7 +129,8 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
129
  # 使用 InferenceClient 呼叫 API 模型產生新題目
130
  completion = client.chat.completions.create(
131
  # model="mistralai/Mistral-7B-Instruct-v0.3",
132
- model="perplexity-ai/r1-1776",
 
133
  messages=messages,
134
  max_tokens=2048
135
  )
 
10
 
11
  HF_TOKEN = os.environ.get("HF_TOKEN")
12
  client = InferenceClient(
13
+ provider="hf-inference",
14
  api_key=HF_TOKEN
15
  )
16
 
 
129
  # 使用 InferenceClient 呼叫 API 模型產生新題目
130
  completion = client.chat.completions.create(
131
  # model="mistralai/Mistral-7B-Instruct-v0.3",
132
+ # model="perplexity-ai/r1-1776",
133
+ model="Qwen/QwQ-32B",
134
  messages=messages,
135
  max_tokens=2048
136
  )