Spaces:
SFP
/
Runtime error

ImCapAPI / app.py
SFP's picture
Create app.py
fe15a96
raw
history blame
212 Bytes
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")