Commit
·
7c35d00
1
Parent(s):
e62e319
added bugs processor
Browse files
app.py
CHANGED
@@ -165,8 +165,15 @@ with col2:
|
|
165 |
|
166 |
with col3:
|
167 |
if st.session_state.get("status") == "loaded":
|
168 |
-
st.
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
with col3:
|
167 |
if st.session_state.get("status") == "loaded":
|
168 |
+
if st.session_state.get("invoice"):
|
169 |
+
st.image(st.session_state["invoice"], caption="Generated invoice", use_container_width=True)
|
170 |
+
else:
|
171 |
+
st.write("Invoice could not be displayed. Please regenerate.")
|
172 |
+
if st.session_state.get("similar_image"):
|
173 |
+
st.image(st.session_state["similar_image"], caption="Similar accident", width=300)
|
174 |
+
else:
|
175 |
+
st.write("No similar image available.")
|
176 |
+
st.write(f"Detailed damage description: {st.session_state.get('detailed_damage_description', 'N/A')}")
|
177 |
+
st.write(f"Damage description: {st.session_state.get('damage_description', 'N/A')}")
|
178 |
+
if st.session_state.get("invoice_path"):
|
179 |
+
st.markdown(get_similar_invoice(st.session_state["invoice_path"]))
|