GLECO commited on
Commit
ef60dd1
·
1 Parent(s): 9e6b247

On essaie d'afficher les fichiers

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -53,7 +53,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None, question_limit: int | N
53
  for question in questions_data:
54
  if question['file_name'] != '':
55
  print(question['task_id'])
56
- requests.get(f'{api_url}/files/{question['task_id']}')
 
57
  except requests.exceptions.RequestException as e:
58
  print(f"Error fetching questions: {e}")
59
  return f"Error fetching questions: {e}", None
 
53
  for question in questions_data:
54
  if question['file_name'] != '':
55
  print(question['task_id'])
56
+ my_file = requests.get(f'{api_url}/files/{question['task_id']}')
57
+ print(my_file)
58
  except requests.exceptions.RequestException as e:
59
  print(f"Error fetching questions: {e}")
60
  return f"Error fetching questions: {e}", None