sabonzo commited on
Commit
2f831cd
·
verified ·
1 Parent(s): 968a68b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -162,7 +162,11 @@ with gr.Blocks() as demo:
162
  response = requests.get(questions_url, timeout=15)
163
  response.raise_for_status()
164
  questions_data = response.json()
165
- gr.Markdown(questions_data[0].get("question"))
 
 
 
 
166
  gr.LoginButton()
167
 
168
  run_button = gr.Button("Run Evaluation & Submit All Answers")
 
162
  response = requests.get(questions_url, timeout=15)
163
  response.raise_for_status()
164
  questions_data = response.json()
165
+ for item in questions_data:
166
+ task_id = item.get("task_id")
167
+ question_text = item.get("question")
168
+ gr.Markdown(f"Task id {task_id} , question: {question_text}")
169
+
170
  gr.LoginButton()
171
 
172
  run_button = gr.Button("Run Evaluation & Submit All Answers")