Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -180,10 +180,13 @@ def save_midi(tokens, batch_number=None):
|
|
| 180 |
|
| 181 |
# Generate a time stamp using the PDT timezone.
|
| 182 |
timestamp = datetime.datetime.now(PDT).strftime("%Y%m%d_%H%M%S")
|
| 183 |
-
|
|
|
|
| 184 |
fname = f"Godzilla-Piano-Transformer-Music-Composition_{timestamp}"
|
| 185 |
else:
|
| 186 |
-
fname = f"Godzilla-Piano-Transformer-Music-Composition_{timestamp}_Batch_{batch_number}"
|
|
|
|
|
|
|
| 187 |
|
| 188 |
TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(
|
| 189 |
song_events,
|
|
|
|
| 180 |
|
| 181 |
# Generate a time stamp using the PDT timezone.
|
| 182 |
timestamp = datetime.datetime.now(PDT).strftime("%Y%m%d_%H%M%S")
|
| 183 |
+
|
| 184 |
+
'''if batch_number is None:
|
| 185 |
fname = f"Godzilla-Piano-Transformer-Music-Composition_{timestamp}"
|
| 186 |
else:
|
| 187 |
+
fname = f"Godzilla-Piano-Transformer-Music-Composition_{timestamp}_Batch_{batch_number}"'''
|
| 188 |
+
|
| 189 |
+
fname = f"Godzilla-Piano-Transformer-Music-Composition"
|
| 190 |
|
| 191 |
TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(
|
| 192 |
song_events,
|