Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

upload multiple files streamlit

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 :: replace column values pandas 
Python :: np.sort descending 
Python :: matlab find in python 
Python :: repeat 10 times python 
Python :: gdscript top-down 2d movement 
Python :: rename one dataframe column python 
Python :: python fill table wiget 
Python :: How to to efficiently find the first index in a sorted array of distinct numbers that is equal to the value at that index? 
Python :: python check if string starting with substring from list ltrim python 
Python :: rename coordinate netcdf python xarray 
Python :: pandas select column by index 
Python :: install python 3.6 ubuntu 16.04 
Python :: bring tkinter window to front 
Python :: python pandas how to load csv file 
Python :: poetry take the dependencies from requirement.txt 
Python :: convert file to base64 python 
Python :: show image with ratio opencv python 
Python :: presentation in jupyter notebook 
Python :: yesno django 
Python :: how to create an empty 2d list in python 
Python :: import crypto python 
Python :: github black badge 
Python :: use of the word bruh over time 
Python :: python sort dataframe by one column 
Python :: python negative infinity 
Python :: producer consumer problem using queue python 
Python :: how to see if a proxy is up in python 
Python :: Appending pandas dataframes generated in a for loop 
Python :: plot pandas figsize 
Python :: get most recent file in directory python 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =