Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def rebootorig():
|
|
24 |
olast_run = current_time
|
25 |
return "Rebooted. Thank you!"
|
26 |
else:
|
27 |
-
raise gr.Error("The Space has already been rebooted recently")
|
28 |
with gr.Blocks() as demo:
|
29 |
gr.Markdown("# Request a Reboot of OpenDalle v1.1 GPU Demo\n\nIs [the demo](https://huggingface.co/spaces/mrfakename/OpenDalleV1.1-GPU-Demo) not working? Request a reboot!")
|
30 |
btn = gr.Button("Reboot V1.1 GPU DEMO")
|
|
|
24 |
olast_run = current_time
|
25 |
return "Rebooted. Thank you!"
|
26 |
else:
|
27 |
+
raise gr.Error("The Space has already been rebooted recently, please try again in 5 minutes.")
|
28 |
with gr.Blocks() as demo:
|
29 |
gr.Markdown("# Request a Reboot of OpenDalle v1.1 GPU Demo\n\nIs [the demo](https://huggingface.co/spaces/mrfakename/OpenDalleV1.1-GPU-Demo) not working? Request a reboot!")
|
30 |
btn = gr.Button("Reboot V1.1 GPU DEMO")
|