Update app.py
Browse filescheck if question_text contains an mp3 filename
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"):
|