Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
#============================================================================================
|
2 |
-
# https://huggingface.co/spaces/projectlosangeles/Orpheus-
|
3 |
#============================================================================================
|
4 |
|
5 |
print('=' * 70)
|
6 |
-
print('Orpheus
|
7 |
|
8 |
print('=' * 70)
|
9 |
-
print('Loading core Orpheus
|
10 |
|
11 |
import os
|
12 |
import copy
|
@@ -16,7 +16,7 @@ import datetime
|
|
16 |
from pytz import timezone
|
17 |
|
18 |
print('=' * 70)
|
19 |
-
print('Loading main Orpheus
|
20 |
|
21 |
os.environ['USE_FLASH_ATTENTION'] = '1'
|
22 |
|
@@ -40,7 +40,7 @@ import random
|
|
40 |
import tqdm
|
41 |
|
42 |
print('=' * 70)
|
43 |
-
print('Loading aux Orpheus
|
44 |
|
45 |
import matplotlib.pyplot as plt
|
46 |
|
@@ -335,10 +335,10 @@ def Generate_Drums(input_midi,
|
|
335 |
|
336 |
output_score, patches, overflow_patches = TMIDIX.patch_enhanced_score_notes(song_f)
|
337 |
|
338 |
-
fn1 = "Orpheus-
|
339 |
|
340 |
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(output_score,
|
341 |
-
output_signature = 'Orpheus
|
342 |
output_file_name = fn1,
|
343 |
track_name='Project Los Angeles',
|
344 |
list_of_MIDI_patches=patches
|
@@ -395,11 +395,11 @@ with gr.Blocks() as demo:
|
|
395 |
|
396 |
#==================================================================================
|
397 |
|
398 |
-
gr.Markdown("<h1 style='text-align: left; margin-bottom: 1rem'>Orpheus
|
399 |
-
gr.Markdown("<h1 style='text-align: left; margin-bottom: 1rem'>
|
400 |
gr.HTML("""
|
401 |
<p>
|
402 |
-
<a href="https://huggingface.co/spaces/projectlosangeles/Orpheus-
|
403 |
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg" alt="Duplicate in Hugging Face">
|
404 |
</a>
|
405 |
</p>
|
|
|
1 |
#============================================================================================
|
2 |
+
# https://huggingface.co/spaces/projectlosangeles/Orpheus-Humanizing-Transformer
|
3 |
#============================================================================================
|
4 |
|
5 |
print('=' * 70)
|
6 |
+
print('Orpheus Humanizing Transformer Gradio App')
|
7 |
|
8 |
print('=' * 70)
|
9 |
+
print('Loading core Orpheus Humanizing Transformer modules...')
|
10 |
|
11 |
import os
|
12 |
import copy
|
|
|
16 |
from pytz import timezone
|
17 |
|
18 |
print('=' * 70)
|
19 |
+
print('Loading main Orpheus Humanizing Transformer modules...')
|
20 |
|
21 |
os.environ['USE_FLASH_ATTENTION'] = '1'
|
22 |
|
|
|
40 |
import tqdm
|
41 |
|
42 |
print('=' * 70)
|
43 |
+
print('Loading aux Orpheus Humanizing Transformer modules...')
|
44 |
|
45 |
import matplotlib.pyplot as plt
|
46 |
|
|
|
335 |
|
336 |
output_score, patches, overflow_patches = TMIDIX.patch_enhanced_score_notes(song_f)
|
337 |
|
338 |
+
fn1 = "Orpheus-Humanizing-Transformer-Composition"
|
339 |
|
340 |
detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(output_score,
|
341 |
+
output_signature = 'Orpheus Humanizing Transformer',
|
342 |
output_file_name = fn1,
|
343 |
track_name='Project Los Angeles',
|
344 |
list_of_MIDI_patches=patches
|
|
|
395 |
|
396 |
#==================================================================================
|
397 |
|
398 |
+
gr.Markdown("<h1 style='text-align: left; margin-bottom: 1rem'>Orpheus Humanizing Transformer</h1>")
|
399 |
+
gr.Markdown("<h1 style='text-align: left; margin-bottom: 1rem'>Humanize durations and/or velocities in any MIDI score</h1>")
|
400 |
gr.HTML("""
|
401 |
<p>
|
402 |
+
<a href="https://huggingface.co/spaces/projectlosangeles/Orpheus-Humanizing-Transformer?duplicate=true">
|
403 |
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg" alt="Duplicate in Hugging Face">
|
404 |
</a>
|
405 |
</p>
|