asigalov61 commited on
Commit
1f0244d
·
verified ·
1 Parent(s): f0505b4

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,5 +1,5 @@
1
  #=======================================================================
2
- # https://huggingface.co/spaces/asigalov61/Guided-Rock-Music-Transformer
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 = "Guided-Rock-Music-Transformer-Composition"
356
 
357
  detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(song_f,
358
- output_signature = 'Guided Rock Music Transformer',
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'>Guided Rock Music 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
- "![Visitors](https://api.visitorbadge.io/api/visitors?path=asigalov61.Guided-Rock-Music-Transformer&style=flat)\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")
 
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
+ "![Visitors](https://api.visitorbadge.io/api/visitors?path=asigalov61.Score-2-Performance-Transformer&style=flat)\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")