OuroborosM commited on
Commit
23742ac
·
1 Parent(s): ef5ad8a

update re format

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1128,7 +1128,7 @@ def chathmi3(message, history2):
1128
 
1129
  def CheckFileinResp(response):
1130
  try:
1131
- pattern = r'sample-\w+\.wav'
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]