Skip to content

Instantly share code, notes, and snippets.

@melvinlee
Created February 29, 2024 03:41
Show Gist options
  • Select an option

  • Save melvinlee/37fed79818f0f17fffbe4c422a71eecd to your computer and use it in GitHub Desktop.

Select an option

Save melvinlee/37fed79818f0f17fffbe4c422a71eecd to your computer and use it in GitHub Desktop.
stramlist
import streamlit as st
import time
col1, col2, col3 = st.columns([1,2,1])
col1.markdown("# Welcome to my app")
uploaded_photo = col2.file_uploader("Upload a photo")
camera_photo = col2.camera_input("Take a photo")
progress_bar = col2.progress(0)
for completed in range(100):
time.sleep(0.05)
progress_bar.progress(completed+1)
col2.success("Photo uploaded succesfully")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment