Update app.py
Browse filesDon't interrupt me...
app.py
CHANGED
@@ -49,7 +49,7 @@ pool.__enter__()
|
|
49 |
|
50 |
def interrupt():
|
51 |
global INTERRUPTING
|
52 |
-
INTERRUPTING =
|
53 |
|
54 |
|
55 |
class FileCleaner:
|
@@ -199,7 +199,7 @@ def ui_full(launch_kwargs):
|
|
199 |
with gr.Row():
|
200 |
submit = gr.Button("Submit")
|
201 |
# Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
|
202 |
-
_ = gr.Button("Interrupt").click(fn=interrupt, queue=False)
|
203 |
with gr.Row():
|
204 |
model = gr.Radio(["melody", "medium", "small", "large"],
|
205 |
label="Model", value="melody", interactive=True)
|
|
|
49 |
|
50 |
def interrupt():
|
51 |
global INTERRUPTING
|
52 |
+
INTERRUPTING = False
|
53 |
|
54 |
|
55 |
class FileCleaner:
|
|
|
199 |
with gr.Row():
|
200 |
submit = gr.Button("Submit")
|
201 |
# Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
|
202 |
+
#_ = gr.Button("Interrupt").click(fn=interrupt, queue=False)
|
203 |
with gr.Row():
|
204 |
model = gr.Radio(["melody", "medium", "small", "large"],
|
205 |
label="Model", value="melody", interactive=True)
|