dont spam temp solution
Browse files
app.py
CHANGED
|
@@ -48,6 +48,9 @@ The leaderboard's backend mainly runs on the [Hugging Face Hub API](https://hugg
|
|
| 48 |
|
| 49 |
with gr.Blocks() as demo:
|
| 50 |
gr.HTML(f"""<h1 align="center" id="space-title">{gradio_title}</h1>""")
|
|
|
|
|
|
|
|
|
|
| 51 |
gr.Markdown(gradio_desc)
|
| 52 |
|
| 53 |
with gr.Row(equal_height=False):
|
|
@@ -59,6 +62,9 @@ with gr.Blocks() as demo:
|
|
| 59 |
output = gr.Textbox(label="Output", lines=1)
|
| 60 |
gr.LogoutButton()
|
| 61 |
|
|
|
|
|
|
|
|
|
|
| 62 |
submit_btn = gr.Button("Submit", variant="primary")
|
| 63 |
submit_btn.click(commit, model_id, output)
|
| 64 |
|
|
|
|
| 48 |
|
| 49 |
with gr.Blocks() as demo:
|
| 50 |
gr.HTML(f"""<h1 align="center" id="space-title">{gradio_title}</h1>""")
|
| 51 |
+
gr.HTML(f"""<h1 align="center" id="space-title" style="font-weight: bold; font-size: 50px; color: red;">DON'T SPAM MODELS!</h1>""")
|
| 52 |
+
gr.HTML(f"""<h1 align="center" id="space-title" style="font-weight: bold; font-size: 30px; color: red;">I understand why you are angry, but spamming won't change anything!</h1>""")
|
| 53 |
+
|
| 54 |
gr.Markdown(gradio_desc)
|
| 55 |
|
| 56 |
with gr.Row(equal_height=False):
|
|
|
|
| 62 |
output = gr.Textbox(label="Output", lines=1)
|
| 63 |
gr.LogoutButton()
|
| 64 |
|
| 65 |
+
if "mattshumer" in model_id:
|
| 66 |
+
gr.Error("DON'T, DON'T SPAM THAT MODELS")
|
| 67 |
+
|
| 68 |
submit_btn = gr.Button("Submit", variant="primary")
|
| 69 |
submit_btn.click(commit, model_id, output)
|
| 70 |
|