Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

streamlit st.file_uploader

import streamlit as st
import io
from PIL import Image


uploaded_files = st.file_uploader("Veuillez charger une image",type=['jpg','jpeg','png'],help="Charger une image au format jpg,jpeg,png", accept_multiple_files=True,)

for uploaded_file in uploaded_files:
     bytes_data = uploaded_file.read()
     image = Image.open(io.BytesIO(bytes_data))
     st.write("filename:", uploaded_file.name)
     st.image(image)
Comment

PREVIOUS NEXT
Code Example
Python :: how to fill an array with consecutive numbers python 
Python :: remove duplicates from list python preserve order 
Python :: ImportError: No module named _tkinter, please install the python-tk package 
Python :: date format in django template 
Python :: print matrix eleme 
Python :: selenium send keys python 
Python :: py bmi 
Python :: how to print a line letter by letter in python 
Python :: binning data dataframe, faire classe statistique dataframe 
Python :: truncate add weird symbols in python 
Python :: anova in python 
Python :: pandas concat series into dataframe 
Python :: hand tracking module 
Python :: how to strip a list in python 
Python :: server error 500 heroku django 
Python :: procfile heroku django 
Python :: flask oneid 
Python :: pandas series to list 
Python :: django httpresponseredirect 
Python :: python round number numpy 
Python :: plt.imshow not showing 
Python :: print undeline and bold text in python 
Python :: how to print for loop in same line in python 
Python :: installing fastapi 
Python :: how to launch jupyter notebook from cmd 
Python :: how do you create a countdown using turtle python 
Python :: django user group check 
Python :: latest django version 
Python :: extract n grams from text python 
Python :: python remove directory not empty 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =