import streamlit as st import tensorflow as tf import numpy as np from PIL import Image # Load the saved ResNet model model_resnet = []#tf.keras.models.load_model("path_to_your_saved_model/resnet_model.h5") # Set page configuration and layout st.set_page_config( page_title="Image Classification App", page_icon=":camera:", layout="wide", ) # Header logo st.image("RCAIoT_logo.png", use_column_width=False) # Main content col1, col2 = st.columns([1, 1]) with col1: st.header("Upload Image") uploaded_image = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"], key="upload_image") if uploaded_image is not None: # Display the uploaded image with fixed initial height and width using HTML/CSS st.image(uploaded_image, caption="Uploaded Image", use_column_width=False, width=300) st.markdown( """ """, unsafe_allow_html=True, ) with col2: st.header("Results") # Stylish Analyze and Reset buttons in a horizontal row st.markdown( """ """, unsafe_allow_html=True, ) st.markdown("
", unsafe_allow_html=True)