Spaces:
Running
Running
asigalov61
commited on
Commit
•
fbae75f
1
Parent(s):
8c43bea
Update app.py
Browse files
app.py
CHANGED
@@ -174,19 +174,17 @@ if __name__ == "__main__":
|
|
174 |
"(https://colab.research.google.com/github/asigalov61/Giant-Music-Transformer/blob/main/Giant_Music_Transformer_TTM.ipynb)"
|
175 |
" for all features"
|
176 |
)
|
177 |
-
|
178 |
-
gr.Markdown("# Upload MIDI")
|
179 |
|
180 |
title = gr.Textbox(label="Desired Song Title", value="Family Guy")
|
181 |
artist = gr.Textbox(label="Desired Song Artist", value="TV Themes")
|
182 |
submit = gr.Button()
|
183 |
|
184 |
-
gr.Markdown("#
|
185 |
|
186 |
-
output_midi_seq = gr.Textbox(label="Output MIDI
|
187 |
-
output_audio = gr.Audio(label="Output MIDI
|
188 |
-
output_plot = gr.Plot(label="Output MIDI
|
189 |
-
output_midi = gr.File(label="Output MIDI
|
190 |
|
191 |
run_event = submit.click(find_midi, [title, artist],
|
192 |
[output_midi_seq, output_midi, output_audio, output_plot])
|
|
|
174 |
"(https://colab.research.google.com/github/asigalov61/Giant-Music-Transformer/blob/main/Giant_Music_Transformer_TTM.ipynb)"
|
175 |
" for all features"
|
176 |
)
|
|
|
|
|
177 |
|
178 |
title = gr.Textbox(label="Desired Song Title", value="Family Guy")
|
179 |
artist = gr.Textbox(label="Desired Song Artist", value="TV Themes")
|
180 |
submit = gr.Button()
|
181 |
|
182 |
+
gr.Markdown("# Search results")
|
183 |
|
184 |
+
output_midi_seq = gr.Textbox(label="Output MIDI search metadata")
|
185 |
+
output_audio = gr.Audio(label="Output MIDI search sample audio", format="mp3", elem_id="midi_audio")
|
186 |
+
output_plot = gr.Plot(label="Output MIDI search sample plot")
|
187 |
+
output_midi = gr.File(label="Output MIDI search sample MIDI", file_types=[".mid"])
|
188 |
|
189 |
run_event = submit.click(find_midi, [title, artist],
|
190 |
[output_midi_seq, output_midi, output_audio, output_plot])
|