Spaces:
Runtime error
Runtime error
Commit
·
577397f
1
Parent(s):
9ed69e7
correct checkfile
Browse files
app.py
CHANGED
@@ -1381,9 +1381,12 @@ def CheckFileinResp(response):
|
|
1381 |
except Exception as e:
|
1382 |
print("No wav found:", e)
|
1383 |
try:
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
|
|
|
|
|
|
1387 |
except Exception as e:
|
1388 |
return "N/A"
|
1389 |
|
|
|
1381 |
except Exception as e:
|
1382 |
print("No wav found:", e)
|
1383 |
try:
|
1384 |
+
if '(sandbox:/' in response:
|
1385 |
+
file = response.split("(sandbox:/")[-1].split(")")[0]
|
1386 |
+
print("File found:", file)
|
1387 |
+
return file
|
1388 |
+
else:
|
1389 |
+
return "N/A"
|
1390 |
except Exception as e:
|
1391 |
return "N/A"
|
1392 |
|