Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,13 +38,13 @@ if uploaded_file is not None:
|
|
| 38 |
# Display content
|
| 39 |
for entry in parsed_data:
|
| 40 |
st.subheader(f"ID: {entry['id']}")
|
| 41 |
-
st.markdown("
|
| 42 |
st.markdown(entry['question'], unsafe_allow_html=True)
|
| 43 |
-
st.markdown("
|
| 44 |
try:
|
| 45 |
st.write(json.dumps(entry['answer'], indent=4))
|
| 46 |
except:
|
| 47 |
st.markdown(entry['answer'], unsafe_allow_html=True)
|
| 48 |
-
st.markdown("
|
| 49 |
st.markdown(entry['explanation'], unsafe_allow_html=True) # Display HTML content
|
| 50 |
|
|
|
|
| 38 |
# Display content
|
| 39 |
for entry in parsed_data:
|
| 40 |
st.subheader(f"ID: {entry['id']}")
|
| 41 |
+
st.markdown("### Question")
|
| 42 |
st.markdown(entry['question'], unsafe_allow_html=True)
|
| 43 |
+
st.markdown("### Answer")
|
| 44 |
try:
|
| 45 |
st.write(json.dumps(entry['answer'], indent=4))
|
| 46 |
except:
|
| 47 |
st.markdown(entry['answer'], unsafe_allow_html=True)
|
| 48 |
+
st.markdown("### Explanation")
|
| 49 |
st.markdown(entry['explanation'], unsafe_allow_html=True) # Display HTML content
|
| 50 |
|