MuGeminorum commited on
Commit
a531320
1 Parent(s): ca1bf2c
Files changed (1) hide show
  1. app.py +5 -2
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.mkdir(cache_dir)
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(label="Please upload 100% of the audio before clicking submit", type="filepath"),
 
 
 
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"),