Spaces:
Runtime error
Runtime error
Commit
·
23742ac
1
Parent(s):
ef5ad8a
update re format
Browse files
app.py
CHANGED
@@ -1128,7 +1128,7 @@ def chathmi3(message, history2):
|
|
1128 |
|
1129 |
def CheckFileinResp(response):
|
1130 |
try:
|
1131 |
-
pattern = r'sample
|
1132 |
result = re.findall(pattern, response)
|
1133 |
print("result of check file in response:", result)
|
1134 |
return result[-1]
|
|
|
1128 |
|
1129 |
def CheckFileinResp(response):
|
1130 |
try:
|
1131 |
+
pattern = r'sample-(?:\d{8})-(?:\d{6})\.wav'
|
1132 |
result = re.findall(pattern, response)
|
1133 |
print("result of check file in response:", result)
|
1134 |
return result[-1]
|