Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,11 +37,9 @@ with st.form("user_inputs"):
|
|
| 37 |
"response_json": json.dumps(RESPONSE_JSON)
|
| 38 |
}
|
| 39 |
)
|
| 40 |
-
st.write(response)
|
| 41 |
if isinstance(response, dict):
|
| 42 |
# Extract quiz data from the response
|
| 43 |
quiz = response.get("quiz", None)
|
| 44 |
-
st.write("Quiz:",quiz)
|
| 45 |
if quiz:
|
| 46 |
table_data = get_table_data(quiz)
|
| 47 |
if table_data is not None:
|
|
|
|
| 37 |
"response_json": json.dumps(RESPONSE_JSON)
|
| 38 |
}
|
| 39 |
)
|
|
|
|
| 40 |
if isinstance(response, dict):
|
| 41 |
# Extract quiz data from the response
|
| 42 |
quiz = response.get("quiz", None)
|
|
|
|
| 43 |
if quiz:
|
| 44 |
table_data = get_table_data(quiz)
|
| 45 |
if table_data is not None:
|