Spaces:
Running
Running
asigalov61
commited on
Commit
•
53409b8
1
Parent(s):
ecaa203
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
|
2 |
-
|
3 |
import os.path
|
4 |
import hashlib
|
5 |
import time
|
@@ -8,9 +8,7 @@ from pytz import timezone
|
|
8 |
|
9 |
import gradio as gr
|
10 |
|
11 |
-
import pickle
|
12 |
import tqdm
|
13 |
-
import json
|
14 |
|
15 |
import TMIDIX
|
16 |
from midi_to_colab_audio import midi_to_colab_audio
|
@@ -192,12 +190,6 @@ if __name__ == "__main__":
|
|
192 |
print('App start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
193 |
print('=' * 70)
|
194 |
|
195 |
-
parser = argparse.ArgumentParser()
|
196 |
-
parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
|
197 |
-
parser.add_argument("--port", type=int, default=7860, help="gradio server port")
|
198 |
-
|
199 |
-
opt = parser.parse_args()
|
200 |
-
|
201 |
soundfonts = ["SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2", "Nice-Strings-PlusOrchestra-v1.6.sf2", "KBH-Real-Choir-V2.5.sf2"]
|
202 |
|
203 |
app = gr.Blocks()
|
@@ -240,4 +232,4 @@ if __name__ == "__main__":
|
|
240 |
run_event = submit.click(render_midi, [input_midi, render_type, soundfont_bank, render_sample_rate, custom_render_patch],
|
241 |
[output_midi_md5, output_midi_title, output_midi_summary, output_midi, output_audio, output_plot])
|
242 |
|
243 |
-
app.queue(1).launch(
|
|
|
1 |
+
# https://huggingface.co/spaces/asigalov61/Advanced-MIDI-Rendere
|
2 |
+
|
3 |
import os.path
|
4 |
import hashlib
|
5 |
import time
|
|
|
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
|
|
|
190 |
print('App start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
|
191 |
print('=' * 70)
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
soundfonts = ["SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2", "Nice-Strings-PlusOrchestra-v1.6.sf2", "KBH-Real-Choir-V2.5.sf2"]
|
194 |
|
195 |
app = gr.Blocks()
|
|
|
232 |
run_event = submit.click(render_midi, [input_midi, render_type, soundfont_bank, render_sample_rate, custom_render_patch],
|
233 |
[output_midi_md5, output_midi_title, output_midi_summary, output_midi, output_audio, output_plot])
|
234 |
|
235 |
+
app.queue(1).launch()
|