Update app.py
Browse files
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:
|