import streamlit as st from PIL import Image def add_logo(logo_path, width, height): logo = Image.open(logo_path) modified_logo = logo.resize((width, height)) return modified_logo # Example usage my_logo = add_logo(logo_path="path/to/your/logo.png", width=50, height=60) st.image(my_logo, caption="Your Logo", use_column_width=True) # Rest of your Streamlit app st.write("# Home") # Other content of your app st.title("My Streamlit App") # Add more components here # Create a text input widget user_input = st.text_input('Enter your text:', 'Hello, Streamlit!') # Define a function to process the input def process_text(input_text): # Perform some operation on the input (e.g., convert to uppercase) return input_text.upper() # Call the function with the user input processed_output = process_text(user_input) # Display the processed output st.write('Processed Output:', processed_output)