Spaces:
Sleeping
Sleeping
kmsravindra
commited on
Commit
•
6cd71cd
1
Parent(s):
178992d
made qa section collapsible
Browse files
app.py
CHANGED
@@ -97,12 +97,18 @@ if narrative_number == 3:
|
|
97 |
#14 had existing old(15 years) MODL composite restoration fail with fracture of Distal/Ling cusp. Decay undermining remaining restoration. 50% tooth remaining/50% lost. #14 cold sensitive. Bone healthy/no periodontal issue/ Full crown best to restore bite/ function.
|
98 |
""")
|
99 |
|
100 |
-
st.write("### Questions and extracted answers using AI model")
|
101 |
# for question, answer in info.items():
|
102 |
# st.write(f"{question}: {answer}")
|
103 |
|
104 |
-
|
105 |
-
|
|
|
106 |
|
107 |
-
# Display the questions and answers in a table format
|
108 |
-
st.table(df)
|
|
|
|
|
|
|
|
|
|
|
|
97 |
#14 had existing old(15 years) MODL composite restoration fail with fracture of Distal/Ling cusp. Decay undermining remaining restoration. 50% tooth remaining/50% lost. #14 cold sensitive. Bone healthy/no periodontal issue/ Full crown best to restore bite/ function.
|
98 |
""")
|
99 |
|
100 |
+
#st.write("### Questions and extracted answers using AI model")
|
101 |
# for question, answer in info.items():
|
102 |
# st.write(f"{question}: {answer}")
|
103 |
|
104 |
+
with st.expander("Questions and extracted answers using AI model"):
|
105 |
+
# Create a DataFrame with the extracted information
|
106 |
+
df = pd.DataFrame(list(info.items()), columns=["Question", "Answer"])
|
107 |
|
108 |
+
# Display the questions and answers in a table format
|
109 |
+
st.table(df)
|
110 |
+
|
111 |
+
# # Create expanders for each question and display the respective answer
|
112 |
+
# for question, answer in info.items():
|
113 |
+
# with st.expander(question):
|
114 |
+
# st.write(answer)
|