aicodingfun commited on
Commit
f3d53d0
·
verified ·
1 Parent(s): 4eb4f4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -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="sambanova",
14
  api_key=HF_TOKEN
15
  )
16
 
@@ -129,7 +129,7 @@ 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="deepseek-ai/DeepSeek-R1",
133
  messages=messages,
134
  max_tokens=2048
135
  )
 
10
 
11
  HF_TOKEN = os.environ.get("HF_TOKEN")
12
  client = InferenceClient(
13
+ provider="fireworks-ai",
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
  messages=messages,
134
  max_tokens=2048
135
  )