Spaces:
Sleeping
Sleeping
Commit
·
d9f0ff3
1
Parent(s):
8f765e9
adjusted for zerogpu
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def generate_accompaniment(midi_file, model_choice, selected_midi_program, histo
|
|
| 73 |
mid = events_to_midi(output_events)
|
| 74 |
mid.save(output_midi)
|
| 75 |
|
| 76 |
-
return output_midi, None
|
| 77 |
|
| 78 |
|
| 79 |
def process_fn(input_midi, model_choice, selected_midi_program, history_length):
|
|
@@ -106,7 +106,7 @@ with gr.Blocks() as demo:
|
|
| 106 |
process_fn=process_fn)
|
| 107 |
|
| 108 |
# Launch PyHARP App
|
| 109 |
-
demo.launch(share=True, show_error=True)
|
| 110 |
|
| 111 |
|
| 112 |
|
|
|
|
| 73 |
mid = events_to_midi(output_events)
|
| 74 |
mid.save(output_midi)
|
| 75 |
|
| 76 |
+
return output_midi, None
|
| 77 |
|
| 78 |
|
| 79 |
def process_fn(input_midi, model_choice, selected_midi_program, history_length):
|
|
|
|
| 106 |
process_fn=process_fn)
|
| 107 |
|
| 108 |
# Launch PyHARP App
|
| 109 |
+
demo.launch(share=True, show_error=True, debug=True)
|
| 110 |
|
| 111 |
|
| 112 |
|