Rejeno commited on
Commit
8e95371
·
verified ·
1 Parent(s): 3ccfc90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -108,7 +108,7 @@ if page == "Dataset":
108
  with cols[idx]:
109
  st.write(f"### {label}")
110
  for img_path in images:
111
- st.image(img_path, use_column_width=True)
112
 
113
  # Data Visualization Page
114
  elif page == "Data Visualization":
@@ -148,7 +148,7 @@ elif page == "Model Metrics":
148
 
149
  # Confusion Matrix
150
  st.subheader("Confusion Matrix")
151
- st.image("con_mat.png", use_column_width=True)
152
 
153
  # Training Curves
154
  col1, col2 = st.columns(2)
@@ -176,7 +176,7 @@ elif page == "Classification":
176
 
177
  if uploaded_file:
178
  image = Image.open(uploaded_file).convert("RGB")
179
- st.image(image, use_column_width=True)
180
 
181
  # Transform and predict
182
  image_tensor = transform(image).unsqueeze(0)
 
108
  with cols[idx]:
109
  st.write(f"### {label}")
110
  for img_path in images:
111
+ st.image(img_path, use_container_width=True)
112
 
113
  # Data Visualization Page
114
  elif page == "Data Visualization":
 
148
 
149
  # Confusion Matrix
150
  st.subheader("Confusion Matrix")
151
+ st.image("con_mat.png", use_container_width=True)
152
 
153
  # Training Curves
154
  col1, col2 = st.columns(2)
 
176
 
177
  if uploaded_file:
178
  image = Image.open(uploaded_file).convert("RGB")
179
+ st.image(image, use_container_width=True)
180
 
181
  # Transform and predict
182
  image_tensor = transform(image).unsqueeze(0)