Duplicated from SFP/ImCap
fe15a96
1
2
3
4
5
6
7
8
9
import gradio as gr from PIL import Image def process_image(file): # Load and display the uploaded file img = Image.open(file) st.image(img) gr.Interface(process_image, inputs="file", outputs="img")