Update app.py
Browse files
app.py
CHANGED
|
@@ -47,11 +47,11 @@ uploaded_file = st.file_uploader("Choose an image", type=["jpg", "png", "jpeg"])
|
|
| 47 |
|
| 48 |
if uploaded_file is not None:
|
| 49 |
image = Image.open(uploaded_file)
|
| 50 |
-
st.image(image, caption="Uploaded Image",
|
| 51 |
|
| 52 |
if st.button("Analyze Image"):
|
| 53 |
processed_img = process_image(image)
|
| 54 |
-
st.image(processed_img, caption="Detected Structural Damage",
|
| 55 |
|
| 56 |
st.subheader("AI Analysis")
|
| 57 |
st.write(get_ai_analysis())
|
|
|
|
| 47 |
|
| 48 |
if uploaded_file is not None:
|
| 49 |
image = Image.open(uploaded_file)
|
| 50 |
+
st.image(image, caption="Uploaded Image", use_container_width=True)
|
| 51 |
|
| 52 |
if st.button("Analyze Image"):
|
| 53 |
processed_img = process_image(image)
|
| 54 |
+
st.image(processed_img, caption="Detected Structural Damage", use_container_width=True)
|
| 55 |
|
| 56 |
st.subheader("AI Analysis")
|
| 57 |
st.write(get_ai_analysis())
|