Spaces:
Sleeping
Sleeping
Commit
·
96944a8
1
Parent(s):
bba1f64
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def reboot():
|
|
14 |
last_run = current_time
|
15 |
return "Rebooted"
|
16 |
else:
|
17 |
-
gr.Error("The Space has already been rebooted recently")
|
18 |
with gr.Blocks() as demo:
|
19 |
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!")
|
20 |
btn = gr.Button("Reboot")
|
|
|
14 |
last_run = current_time
|
15 |
return "Rebooted"
|
16 |
else:
|
17 |
+
raise gr.Error("The Space has already been rebooted recently")
|
18 |
with gr.Blocks() as demo:
|
19 |
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!")
|
20 |
btn = gr.Button("Reboot")
|