Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ elif app_mode == "π©» X-ray Classifier":
|
|
| 46 |
|
| 47 |
uploaded_image = st.file_uploader("π€ Upload Chest X-ray", type=["jpg", "jpeg", "png"])
|
| 48 |
|
| 49 |
-
|
| 50 |
with st.spinner("π Predicting..."):
|
| 51 |
# β
Show files in directory to debug model path
|
| 52 |
st.write("π Files in directory:", os.listdir())
|
|
@@ -75,6 +75,7 @@ elif app_mode == "π©» X-ray Classifier":
|
|
| 75 |
st.error(f"π« Prediction failed. Error: `{e}`")
|
| 76 |
|
| 77 |
|
|
|
|
| 78 |
# ------------------------- DATA ANALYSIS -------------------------
|
| 79 |
elif app_mode == "π Global Data Analysis":
|
| 80 |
st.header("π WHO COVID-19 Data Analysis")
|
|
|
|
| 46 |
|
| 47 |
uploaded_image = st.file_uploader("π€ Upload Chest X-ray", type=["jpg", "jpeg", "png"])
|
| 48 |
|
| 49 |
+
if uploaded_image:
|
| 50 |
with st.spinner("π Predicting..."):
|
| 51 |
# β
Show files in directory to debug model path
|
| 52 |
st.write("π Files in directory:", os.listdir())
|
|
|
|
| 75 |
st.error(f"π« Prediction failed. Error: `{e}`")
|
| 76 |
|
| 77 |
|
| 78 |
+
|
| 79 |
# ------------------------- DATA ANALYSIS -------------------------
|
| 80 |
elif app_mode == "π Global Data Analysis":
|
| 81 |
st.header("π WHO COVID-19 Data Analysis")
|