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")