D3V1L1810 commited on
Commit
e017c42
·
verified ·
1 Parent(s): 4a3e94e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -116,7 +116,10 @@ def process_audio(params):
116
  return {"error": f"Invalid JSON input: {e.msg} at line {e.lineno} column {e.colno}"}
117
 
118
  audio_files = params.get("urls", [])
119
- file_ids = params.get("normalfileID",[])
 
 
 
120
  # api = params.get("api", "")
121
  # job_id = params.get("job_id", "")
122
 
 
116
  return {"error": f"Invalid JSON input: {e.msg} at line {e.lineno} column {e.colno}"}
117
 
118
  audio_files = params.get("urls", [])
119
+ if not params.get("normalfileID",[]):
120
+ file_ids = [None]*len(image_urls)
121
+ else:
122
+ file_ids = params.get("normalfileID",[])
123
  # api = params.get("api", "")
124
  # job_id = params.get("job_id", "")
125