|
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 |
|
|
|
|
|
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) |
|
|
|
|
|
st.write("# Home") |
|
|
|
|
|
st.title("My Streamlit App") |
|
|
|
|
|
user_input = st.text_input('Enter your text:', 'Hello, Streamlit!') |
|
|
|
|
|
def process_text(input_text): |
|
|
|
return input_text.upper() |
|
|
|
|
|
processed_output = process_text(user_input) |
|
|
|
|
|
st.write('Processed Output:', processed_output) |