Created
February 29, 2024 03:41
-
-
Save melvinlee/37fed79818f0f17fffbe4c422a71eecd to your computer and use it in GitHub Desktop.
stramlist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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