Spaces:
line
/
Runtime error

line commited on
Commit
8d7e8c6
·
1 Parent(s): 93abbd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import os
3
 
4
  def inference(input_file_path,model_name):
5
- if model_name == "":
6
  model_name = "htdemucs"
7
  # Make sure the output directory exists
8
  temp_dir = os.path.dirname(input_file_path)
 
2
  import os
3
 
4
  def inference(input_file_path,model_name):
5
+ if model_name == "" or model_name == None:
6
  model_name = "htdemucs"
7
  # Make sure the output directory exists
8
  temp_dir = os.path.dirname(input_file_path)