Weyaxi commited on
Commit
4777797
·
verified ·
1 Parent(s): c8a7108
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -66,6 +66,7 @@ with gr.Blocks() as demo:
66
 
67
  def validate_model_id(input_id):
68
  if "mattshumer/" in input_id:
 
69
  return "DON'T, DON'T SPAM THAT MODELS"
70
  else:
71
  return commit(input_id)
 
66
 
67
  def validate_model_id(input_id):
68
  if "mattshumer/" in input_id:
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)