Shivangsinha commited on
Commit
2db6e24
·
verified ·
1 Parent(s): 3098349

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -24,9 +24,9 @@ class BasicAgent:
24
  def __init__(self):
25
  print("BasicAgent initialized.")
26
 
27
- new_hf_token = os.getenv("NEW_HF_TOKEN")
28
  if not new_hf_token:
29
- raise ValueError("NEW_HF_TOKEN environment variable not set in Space Secrets.")
30
 
31
  self.model = InferenceClientModel(
32
  model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
@@ -172,7 +172,7 @@ with gr.Blocks() as demo:
172
  gr.Markdown(
173
  """
174
  **Instructions:**
175
- 1. Ensure your `NEW_HF_TOKEN` is set.
176
  2. Log in below.
177
  3. Click 'Run Evaluation & Submit' to start.
178
  """
 
24
  def __init__(self):
25
  print("BasicAgent initialized.")
26
 
27
+ new_hf_token = os.getenv("HF_TOKEN")
28
  if not new_hf_token:
29
+ raise ValueError("HF_TOKEN environment variable not set in Space Secrets.")
30
 
31
  self.model = InferenceClientModel(
32
  model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
 
172
  gr.Markdown(
173
  """
174
  **Instructions:**
175
+ 1. Ensure your `HF_TOKEN` is set.
176
  2. Log in below.
177
  3. Click 'Run Evaluation & Submit' to start.
178
  """