Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,6 @@ from pytz import timezone
|
|
| 8 |
|
| 9 |
import gradio as gr
|
| 10 |
|
| 11 |
-
import tqdm
|
| 12 |
-
|
| 13 |
import TMIDIX
|
| 14 |
from midi_to_colab_audio import midi_to_colab_audio
|
| 15 |
|
|
@@ -180,16 +178,16 @@ def render_midi(input_midi,
|
|
| 180 |
print('Output MIDI summary:', output_midi_summary[:5])
|
| 181 |
print('=' * 70)
|
| 182 |
|
| 183 |
-
|
| 184 |
#========================================================
|
| 185 |
|
| 186 |
print('Req end time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
| 187 |
print('-' * 70)
|
| 188 |
print('Req execution time:', (time.time() - start_time), 'sec')
|
| 189 |
print('*' * 70)
|
|
|
|
| 190 |
#========================================================
|
| 191 |
|
| 192 |
-
|
| 193 |
|
| 194 |
#==========================================================================================================
|
| 195 |
|
|
@@ -212,6 +210,7 @@ if __name__ == "__main__":
|
|
| 212 |
app = gr.Blocks()
|
| 213 |
|
| 214 |
with app:
|
|
|
|
| 215 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Advanced MIDI Renderer</h1>")
|
| 216 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Transform and render any MIDI</h1>")
|
| 217 |
|
|
|
|
| 8 |
|
| 9 |
import gradio as gr
|
| 10 |
|
|
|
|
|
|
|
| 11 |
import TMIDIX
|
| 12 |
from midi_to_colab_audio import midi_to_colab_audio
|
| 13 |
|
|
|
|
| 178 |
print('Output MIDI summary:', output_midi_summary[:5])
|
| 179 |
print('=' * 70)
|
| 180 |
|
|
|
|
| 181 |
#========================================================
|
| 182 |
|
| 183 |
print('Req end time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
| 184 |
print('-' * 70)
|
| 185 |
print('Req execution time:', (time.time() - start_time), 'sec')
|
| 186 |
print('*' * 70)
|
| 187 |
+
|
| 188 |
#========================================================
|
| 189 |
|
| 190 |
+
return output_midi_md5, output_midi_title, output_midi_summary, output_midi, output_audio, output_plot
|
| 191 |
|
| 192 |
#==========================================================================================================
|
| 193 |
|
|
|
|
| 210 |
app = gr.Blocks()
|
| 211 |
|
| 212 |
with app:
|
| 213 |
+
|
| 214 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Advanced MIDI Renderer</h1>")
|
| 215 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Transform and render any MIDI</h1>")
|
| 216 |
|