Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -288,7 +288,7 @@ def main():
|
|
| 288 |
if uploaded_file is not None:
|
| 289 |
try:
|
| 290 |
image = Image.open(uploaded_file)
|
| 291 |
-
st.image(image, caption="Uploaded Image",
|
| 292 |
|
| 293 |
with st.spinner("🧠 Analyzing..."):
|
| 294 |
img_tensor = preprocess_image(image)
|
|
@@ -305,7 +305,7 @@ def main():
|
|
| 305 |
if camera_photo is not None:
|
| 306 |
try:
|
| 307 |
image = Image.open(camera_photo)
|
| 308 |
-
st.image(image, caption="Camera Photo",
|
| 309 |
|
| 310 |
with st.spinner("🧠 Analyzing..."):
|
| 311 |
img_tensor = preprocess_image(image)
|
|
|
|
| 288 |
if uploaded_file is not None:
|
| 289 |
try:
|
| 290 |
image = Image.open(uploaded_file)
|
| 291 |
+
st.image(image, caption="Uploaded Image", use_container_width=True)
|
| 292 |
|
| 293 |
with st.spinner("🧠 Analyzing..."):
|
| 294 |
img_tensor = preprocess_image(image)
|
|
|
|
| 305 |
if camera_photo is not None:
|
| 306 |
try:
|
| 307 |
image = Image.open(camera_photo)
|
| 308 |
+
st.image(image, caption="Camera Photo", use_container_width=True)
|
| 309 |
|
| 310 |
with st.spinner("🧠 Analyzing..."):
|
| 311 |
img_tensor = preprocess_image(image)
|