Upload app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
#=======================================================================
|
| 2 |
-
# https://huggingface.co/spaces/asigalov61/
|
| 3 |
#=======================================================================
|
| 4 |
|
| 5 |
import os
|
|
@@ -352,10 +352,10 @@ def Generate_Rock_Song(input_midi,
|
|
| 352 |
|
| 353 |
song_f.append(['note', time, dur, channel, pitch, velocities[channel], patch])
|
| 354 |
|
| 355 |
-
fn1 = "
|
| 356 |
|
| 357 |
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(song_f,
|
| 358 |
-
output_signature = '
|
| 359 |
output_file_name = fn1,
|
| 360 |
track_name='Project Los Angeles',
|
| 361 |
list_of_MIDI_patches=patches
|
|
@@ -414,10 +414,10 @@ if __name__ == "__main__":
|
|
| 414 |
|
| 415 |
with app:
|
| 416 |
|
| 417 |
-
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>
|
| 418 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Generate unique rock music compositions with source augmented RoPE music transformer</h1>")
|
| 419 |
gr.Markdown(
|
| 420 |
-
"
|
| 423 |
gr.Markdown("### For best results use MIDIs with 1:2 notes to drums ratio")
|
|
|
|
| 1 |
#=======================================================================
|
| 2 |
+
# https://huggingface.co/spaces/asigalov61/Score-2-Performance-Transformer
|
| 3 |
#=======================================================================
|
| 4 |
|
| 5 |
import os
|
|
|
|
| 352 |
|
| 353 |
song_f.append(['note', time, dur, channel, pitch, velocities[channel], patch])
|
| 354 |
|
| 355 |
+
fn1 = "Score-2-Performance-Transformer-Composition"
|
| 356 |
|
| 357 |
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(song_f,
|
| 358 |
+
output_signature = 'Score 2 Performance Transformer',
|
| 359 |
output_file_name = fn1,
|
| 360 |
track_name='Project Los Angeles',
|
| 361 |
list_of_MIDI_patches=patches
|
|
|
|
| 414 |
|
| 415 |
with app:
|
| 416 |
|
| 417 |
+
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Score 2 Performance Transformer</h1>")
|
| 418 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Generate unique rock music compositions with source augmented RoPE music transformer</h1>")
|
| 419 |
gr.Markdown(
|
| 420 |
+
"\n\n")
|
| 421 |
|
| 422 |
gr.Markdown("## Upload your MIDI or select a sample example MIDI below")
|
| 423 |
gr.Markdown("### For best results use MIDIs with 1:2 notes to drums ratio")
|