pachet commited on
Commit
2115f27
·
1 Parent(s): f3c2125

Add app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -104,9 +104,8 @@ with gr.Blocks() as ui:
104
 
105
  hexachord_input = gr.Textbox(label="Enter 6 MIDI note numbers (separated by spaces)", value="60 62 64 65 67 69")
106
  generate_button = gr.Button("Generate Chords")
107
- midi_output = gr.File(label="Generated MIDI")
108
  audio_output = gr.Audio(label="Play Generated Chords", value=None, interactive=False)
109
- score_button = gr.Button("Open in editor")
110
 
111
  generate_button.click(
112
  fn=process_hexachord,
@@ -114,12 +113,6 @@ with gr.Blocks() as ui:
114
  outputs=[midi_output, audio_output]
115
  )
116
 
117
- score_button.click(
118
- fn=launch_score_editor,
119
- inputs=[midi_output],
120
- outputs=[]
121
- )
122
-
123
  on_huggingface = "HUGGINGFACE_SPACE" in os.environ
124
 
125
 
 
104
 
105
  hexachord_input = gr.Textbox(label="Enter 6 MIDI note numbers (separated by spaces)", value="60 62 64 65 67 69")
106
  generate_button = gr.Button("Generate Chords")
107
+ midi_output = gr.File(label="Download MIDI File")
108
  audio_output = gr.Audio(label="Play Generated Chords", value=None, interactive=False)
 
109
 
110
  generate_button.click(
111
  fn=process_hexachord,
 
113
  outputs=[midi_output, audio_output]
114
  )
115
 
 
 
 
 
 
 
116
  on_huggingface = "HUGGINGFACE_SPACE" in os.environ
117
 
118