joronoso commited on
Commit
2eb57f8
·
verified ·
1 Parent(s): 4e10f06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
74
  continue
75
 
76
  # Manage questions with files
77
- if item.get("file_name"):
78
  file = requests.get(files_url+task_id, timeout=15).text
79
  complete_question_text = f'{question_text}\nThis is the accompanying file:\n{file}'
80
  else:
 
74
  continue
75
 
76
  # Manage questions with files
77
+ if item.get("file_name") and item.get("file_name") in ['.py', '.txt', '.json']:
78
  file = requests.get(files_url+task_id, timeout=15).text
79
  complete_question_text = f'{question_text}\nThis is the accompanying file:\n{file}'
80
  else: