Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def GenerateDrums(input_midi, input_num_tokens):
|
|
61 |
print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
62 |
start_time = reqtime.time()
|
63 |
|
64 |
-
fn = os.path.basename(input_midi)
|
65 |
fn1 = fn.split('.')[0]
|
66 |
|
67 |
print('-' * 70)
|
@@ -72,7 +72,7 @@ def GenerateDrums(input_midi, input_num_tokens):
|
|
72 |
#===============================================================================
|
73 |
# Raw single-track ms score
|
74 |
|
75 |
-
raw_score = TMIDIX.midi2single_track_ms_score(input_midi)
|
76 |
|
77 |
#===============================================================================
|
78 |
# Enhanced score notes
|
|
|
61 |
print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
62 |
start_time = reqtime.time()
|
63 |
|
64 |
+
fn = os.path.basename(input_midi.name)
|
65 |
fn1 = fn.split('.')[0]
|
66 |
|
67 |
print('-' * 70)
|
|
|
72 |
#===============================================================================
|
73 |
# Raw single-track ms score
|
74 |
|
75 |
+
raw_score = TMIDIX.midi2single_track_ms_score(input_midi.name)
|
76 |
|
77 |
#===============================================================================
|
78 |
# Enhanced score notes
|