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)
|