bkhmsi commited on
Commit
55b6215
·
1 Parent(s): 4e8105c

allow for empty hf token

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -88,6 +88,9 @@ def route_and_plot(model_choice: str, hf_token: str, user_prompt: str, assistant
88
  - Call backend (real or mock)
89
  - Return a table + bar plot + status message
90
  """
 
 
 
91
  model_id = model_choice.strip()
92
  if not model_id:
93
  raise gr.Error("Please select a model or enter a custom model id.")
 
88
  - Call backend (real or mock)
89
  - Return a table + bar plot + status message
90
  """
91
+ if hf_token.strip() == "":
92
+ hf_token = None # allow empty token
93
+
94
  model_id = model_choice.strip()
95
  if not model_id:
96
  raise gr.Error("Please select a model or enter a custom model id.")