Weyaxi commited on
Commit
44a3392
·
verified ·
1 Parent(s): 5ae3fd9
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -69,8 +69,7 @@ with gr.Blocks() as demo:
69
  gr.Error("DON'T, DON'T SPAM THAT MODELS")
70
  return "DON'T, DON'T SPAM THAT MODELS"
71
  else:
72
- return oauth_token.token
73
- #return commit(input_id)
74
 
75
  submit_btn.click(validate_model_id, model_id, output)
76
 
 
69
  gr.Error("DON'T, DON'T SPAM THAT MODELS")
70
  return "DON'T, DON'T SPAM THAT MODELS"
71
  else:
72
+ return commit(input_id, oauth_token=oauth_token.token)
 
73
 
74
  submit_btn.click(validate_model_id, model_id, output)
75