Spaces:
line
/
Runtime error

line commited on
Commit
8ef898e
·
1 Parent(s): f678f1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -13,6 +13,8 @@ def inference(input_file_path,model_name):
13
  print(input_file_path)
14
  # Define the output file paths
15
  filename = os.path.basename(input_file_path).split('.')[0]
 
 
16
 
17
  vocals_out = os.path.join(temp_out_dir, model_name,filename,"vocals.mp3")
18
  no_vocals_out = os.path.join(temp_out_dir, model_name,filename,"no_vocals.mp3")
 
13
  print(input_file_path)
14
  # Define the output file paths
15
  filename = os.path.basename(input_file_path).split('.')[0]
16
+ if not filename:
17
+ filename=""
18
 
19
  vocals_out = os.path.join(temp_out_dir, model_name,filename,"vocals.mp3")
20
  no_vocals_out = os.path.join(temp_out_dir, model_name,filename,"no_vocals.mp3")