Phaneendrabayi commited on
Commit
90abda7
·
verified ·
1 Parent(s): f789dcc

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +3 -3
pages/Life_cycle_of_ML.py CHANGED
@@ -1,7 +1,7 @@
1
  import streamlit as st
2
  import numpy as np
3
  import cv2
4
-
5
 
6
 
7
 
@@ -583,7 +583,7 @@ def table():
583
  image = cv2.imdecode(image_array, cv2.IMREAD_COLOR)
584
 
585
  # Show the original image
586
- st.image(image, caption="Original Image", channels="BGR", use_column_width=True)
587
 
588
  # Step 2: Resize image to 100x100 pixels using OpenCV
589
  resized_image = cv2.resize(image, (100, 100))
@@ -601,7 +601,7 @@ def table():
601
  st.dataframe(image_data.head()) # Displaying the first few pixels
602
 
603
  # Optional: Show resized image
604
- st.image(resized_image, caption="Resized Image (100x100)", channels="BGR", use_column_width=True)
605
 
606
 
607
  if 'page' not in st.session_state:
 
1
  import streamlit as st
2
  import numpy as np
3
  import cv2
4
+ import pandas as pd
5
 
6
 
7
 
 
583
  image = cv2.imdecode(image_array, cv2.IMREAD_COLOR)
584
 
585
  # Show the original image
586
+ st.image(image, caption="Original Image", channels="BGR")
587
 
588
  # Step 2: Resize image to 100x100 pixels using OpenCV
589
  resized_image = cv2.resize(image, (100, 100))
 
601
  st.dataframe(image_data.head()) # Displaying the first few pixels
602
 
603
  # Optional: Show resized image
604
+ st.image(resized_image, caption="Resized Image (100x100)", channels="BGR")
605
 
606
 
607
  if 'page' not in st.session_state: