civerson916 commited on
Commit
882a023
·
verified ·
1 Parent(s): 4f6359a

Update app.py

Browse files

check if question_text contains an mp3 filename

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -227,7 +227,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
227
  continue
228
  try:
229
  # check if question_text contains an mp3 filename
230
- if not item.get("file_name") and ".mp3" in question_text:
231
  continue
232
  # check if the file_name is not empty
233
  if item.get("file_name"):
 
227
  continue
228
  try:
229
  # check if question_text contains an mp3 filename
230
+ if not (item.get("file_name") and not ".mp3" in question_text):
231
  continue
232
  # check if the file_name is not empty
233
  if item.get("file_name"):