asigalov61
commited on
Commit
•
c1179ea
1
Parent(s):
8b4570b
Update app.py
Browse files
app.py
CHANGED
@@ -284,6 +284,14 @@ if __name__ == "__main__":
|
|
284 |
|
285 |
input_midi = gr.File(label="Input MIDI", file_types=[".midi", ".mid", ".kar"])
|
286 |
input_num_tokens = gr.Slider(16, 512, value=256, label="Number of Tokens", info="Number of tokens to generate")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
|
288 |
run_btn = gr.Button("generate", variant="primary")
|
289 |
|
|
|
284 |
|
285 |
input_midi = gr.File(label="Input MIDI", file_types=[".midi", ".mid", ".kar"])
|
286 |
input_num_tokens = gr.Slider(16, 512, value=256, label="Number of Tokens", info="Number of tokens to generate")
|
287 |
+
|
288 |
+
gr.Examples(
|
289 |
+
[["Allegro-Music-Transformer-MI-Seed-1.mid"], ["Allegro-Music-Transformer-MI-Seed-2.mid"]],
|
290 |
+
[input_midi, input_num_tokens],
|
291 |
+
[output_midi_title, output_midi_summary, output_midi, output_audio, output_plot],
|
292 |
+
GenerateDrums,
|
293 |
+
cache_examples=True,
|
294 |
+
)
|
295 |
|
296 |
run_btn = gr.Button("generate", variant="primary")
|
297 |
|