realArceus commited on
Commit
7c690e9
Β·
verified Β·
1 Parent(s): 8455df8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,10 +3,12 @@ import time
3
  import torch
4
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
5
  from huggingface_hub import InferenceClient
 
 
6
 
7
  # ── Reasoner (HF Inference API) ───────────────────────────────────────────────
8
  REASONER_MODEL = "Qwen/Qwen2.5-7B-Instruct"
9
- client = InferenceClient(REASONER_MODEL)
10
 
11
  SYSTEM_PROMPT = """You are a careful step-by-step reasoner. When given a problem, solve it by thinking through exactly numbered steps.
12
  Format EVERY step as:
 
3
  import torch
4
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
5
  from huggingface_hub import InferenceClient
6
+ import os
7
+
8
 
9
  # ── Reasoner (HF Inference API) ───────────────────────────────────────────────
10
  REASONER_MODEL = "Qwen/Qwen2.5-7B-Instruct"
11
+ client = InferenceClient(REASONER_MODEL, token=os.environ.get("HF_TOKEN"))
12
 
13
  SYSTEM_PROMPT = """You are a careful step-by-step reasoner. When given a problem, solve it by thinking through exactly numbered steps.
14
  Format EVERY step as: