Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,7 +96,10 @@ def process_audio(params):
|
|
| 96 |
return {"error": f"Invalid JSON input: {e.msg} at line {e.lineno} column {e.colno}"}
|
| 97 |
|
| 98 |
audio_files = params.get("urls", [])
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
| 100 |
# api = params.get("api", "")
|
| 101 |
# job_id = params.get("job_id", "")
|
| 102 |
|
|
|
|
| 96 |
return {"error": f"Invalid JSON input: {e.msg} at line {e.lineno} column {e.colno}"}
|
| 97 |
|
| 98 |
audio_files = params.get("urls", [])
|
| 99 |
+
if not params.get("normalfileID",[]):
|
| 100 |
+
file_ids = [None]*len(audio_files)
|
| 101 |
+
else:
|
| 102 |
+
file_ids = params.get("normalfileID",[])
|
| 103 |
# api = params.get("api", "")
|
| 104 |
# job_id = params.get("job_id", "")
|
| 105 |
|