Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
SFP/ImCap
SFP
/
ImCapAPI
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
fe15a96
ImCapAPI
/
app.py
SFP
Create app.py
fe15a96
over 1 year ago
raw
Copy download link
history
blame
Safe
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"
)