Spaces:
Running
on
Zero
Running
on
Zero
remove stop button. it has bug in zerogpu
Browse files
app.py
CHANGED
@@ -445,7 +445,7 @@ if __name__ == "__main__":
|
|
445 |
example3 = gr.Examples([[1, 0.95, 128], [1, 0.98, 20], [1, 0.98, 12]],
|
446 |
[input_temp, input_top_p, input_top_k])
|
447 |
run_btn = gr.Button("generate", variant="primary")
|
448 |
-
stop_btn = gr.Button("stop and output")
|
449 |
output_midi_seq = gr.State()
|
450 |
output_continuation_state = gr.State([0])
|
451 |
batch_outputs = []
|
@@ -469,8 +469,8 @@ if __name__ == "__main__":
|
|
469 |
inputs=[input_model, output_midi_seq],
|
470 |
outputs=batch_outputs + [js_msg],
|
471 |
queue=False)
|
472 |
-
stop_btn.click(None, [], [], cancels=run_event,
|
473 |
-
|
474 |
undo_btn.click(undo_continuation, [input_model, output_midi_seq, output_continuation_state],
|
475 |
[output_midi_seq, output_continuation_state, js_msg], queue=False)
|
476 |
app.queue().launch(server_port=opt.port, share=opt.share, inbrowser=True)
|
|
|
445 |
example3 = gr.Examples([[1, 0.95, 128], [1, 0.98, 20], [1, 0.98, 12]],
|
446 |
[input_temp, input_top_p, input_top_k])
|
447 |
run_btn = gr.Button("generate", variant="primary")
|
448 |
+
# stop_btn = gr.Button("stop and output")
|
449 |
output_midi_seq = gr.State()
|
450 |
output_continuation_state = gr.State([0])
|
451 |
batch_outputs = []
|
|
|
469 |
inputs=[input_model, output_midi_seq],
|
470 |
outputs=batch_outputs + [js_msg],
|
471 |
queue=False)
|
472 |
+
# stop_btn.click(None, [], [], cancels=run_event,
|
473 |
+
# queue=False)
|
474 |
undo_btn.click(undo_continuation, [input_model, output_midi_seq, output_continuation_state],
|
475 |
[output_midi_seq, output_continuation_state, js_msg], queue=False)
|
476 |
app.queue().launch(server_port=opt.port, share=opt.share, inbrowser=True)
|