sabonzo commited on
Commit
79f9fd4
·
verified ·
1 Parent(s): 2f831cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -162,10 +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
  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
 
 
162
  response = requests.get(questions_url, timeout=15)
163
  response.raise_for_status()
164
  questions_data = response.json()
165
+ c = 0
166
  for item in questions_data:
167
+ c = c + 1
168
  question_text = item.get("question")
169
+ gr.Markdown(f"Task id {c} , question: {question_text}")
170
 
171
  gr.LoginButton()
172