Spaces:
Running
Running
MuGeminorum
commited on
Commit
•
a531320
1
Parent(s):
ca1bf2c
fix mkdir
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def clean_cache(cache_dir=CACHE_DIR):
|
|
22 |
if os.path.exists(cache_dir):
|
23 |
shutil.rmtree(cache_dir)
|
24 |
|
25 |
-
os.
|
26 |
|
27 |
|
28 |
def get_audio_file_type(file_path):
|
@@ -130,7 +130,10 @@ with gr.Blocks() as iface:
|
|
130 |
with gr.Tab("Upload mode"):
|
131 |
gr.Interface(
|
132 |
fn=inference,
|
133 |
-
inputs=gr.Audio(
|
|
|
|
|
|
|
134 |
outputs=[
|
135 |
gr.components.File(label="Download MIDI"),
|
136 |
gr.components.File(label="Download PDF score"),
|
|
|
22 |
if os.path.exists(cache_dir):
|
23 |
shutil.rmtree(cache_dir)
|
24 |
|
25 |
+
os.makedirs(cache_dir, exist_ok=True)
|
26 |
|
27 |
|
28 |
def get_audio_file_type(file_path):
|
|
|
130 |
with gr.Tab("Upload mode"):
|
131 |
gr.Interface(
|
132 |
fn=inference,
|
133 |
+
inputs=gr.Audio(
|
134 |
+
label="Please upload 100% of the audio before clicking submit",
|
135 |
+
type="filepath",
|
136 |
+
),
|
137 |
outputs=[
|
138 |
gr.components.File(label="Download MIDI"),
|
139 |
gr.components.File(label="Download PDF score"),
|