Create app.py
Browse files
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")
|