SFP commited on
Commit
fe15a96
·
1 Parent(s): 60cee97

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from PIL import Image
3
+
4
+ def process_image(file):
5
+ # Load and display the uploaded file
6
+ img = Image.open(file)
7
+ st.image(img)
8
+
9
+ gr.Interface(process_image, inputs="file", outputs="img")