Spaces:
Runtime error
Runtime error
Commit
·
2159b9e
1
Parent(s):
8a20586
update checkfile
Browse files
app.py
CHANGED
@@ -1378,7 +1378,12 @@ def CheckFileinResp(response):
|
|
1378 |
return result[-1]
|
1379 |
except Exception as e:
|
1380 |
print("No wav found:", e)
|
1381 |
-
|
|
|
|
|
|
|
|
|
|
|
1382 |
|
1383 |
def chathmi4(message, history2):
|
1384 |
global last_request
|
|
|
1378 |
return result[-1]
|
1379 |
except Exception as e:
|
1380 |
print("No wav found:", e)
|
1381 |
+
try:
|
1382 |
+
file = response.split("(sandbox:/")[-1].split(")")[0]
|
1383 |
+
print("File found:", file)
|
1384 |
+
return file
|
1385 |
+
except Exception as e:
|
1386 |
+
return "N/A"
|
1387 |
|
1388 |
def chathmi4(message, history2):
|
1389 |
global last_request
|