Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 167 |
question_text = item.get("question")
|
| 168 |
-
gr.Markdown(f"Task id {
|
| 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 |
|