Gonzalo Lope commited on
Commit
c257742
·
1 Parent(s): 9286f86

fixed print

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -82,7 +82,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
82
  # Add question data to a json file
83
  with open("questions_full.json", "w") as f:
84
  json.dump(questions_data, f, indent=4)
85
- print(questions_data)
 
86
  for item in questions_data:
87
  task_id = item.get("task_id")
88
  question_text = item.get("question")
 
82
  # Add question data to a json file
83
  with open("questions_full.json", "w") as f:
84
  json.dump(questions_data, f, indent=4)
85
+ # print in a way it can be copied to a file
86
+ print(json.dumps(questions_data, indent=4))
87
  for item in questions_data:
88
  task_id = item.get("task_id")
89
  question_text = item.get("question")