Cv / app.py
Pezh's picture
Create app.py
477efd3
raw
history blame
690 Bytes
import streamlit as st
from PIL import Image
# Set up the title of the app
st.title('Simple Streamlit App')
# File uploader to allow users to upload images
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])
# Display the uploaded image
if uploaded_file is not None:
image = Image.open(uploaded_file)
st.image(image, caption='Uploaded Image', use_column_width=True)
# Button to print "Hey you"
if st.button('Hey Button'):
st.write('Hey you')
# Text input
text_input = st.text_input('Enter some text')
# Button to print the text from input
if st.button('Print Text'):
st.write(text_input)
# Run this with `streamlit run your_script.py`