davanstrien HF staff commited on
Commit
f0a18e6
1 Parent(s): c249165

remove token check

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -74,8 +74,8 @@ def get_valid_hub_image_classification_model_ids():
74
 
75
 
76
  def predict_subset(model_id, token):
77
- if token.value is None:
78
- raise gr.Error("Please enter a valid token")
79
  valid_model_ids = get_valid_hub_image_classification_model_ids()
80
  if model_id not in valid_model_ids:
81
  raise gr.Error(
 
74
 
75
 
76
  def predict_subset(model_id, token):
77
+ # if token.value is None:
78
+ # raise gr.Error("Please enter a valid token")
79
  valid_model_ids = get_valid_hub_image_classification_model_ids()
80
  if model_id not in valid_model_ids:
81
  raise gr.Error(