Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,10 @@ def transform_image(image):
|
|
| 10 |
|
| 11 |
iface = gr.Interface(
|
| 12 |
fn=transform_image,
|
| 13 |
-
inputs=gr.
|
| 14 |
outputs=["image", "image"], # Display both original and transformed
|
| 15 |
title="My Fun Image App",
|
| 16 |
description="Upload an image and see a grayscale version!"
|
| 17 |
)
|
| 18 |
|
| 19 |
-
iface.launch()
|
|
|
|
| 10 |
|
| 11 |
iface = gr.Interface(
|
| 12 |
fn=transform_image,
|
| 13 |
+
inputs=gr.Image(type='pil'), # Image input type
|
| 14 |
outputs=["image", "image"], # Display both original and transformed
|
| 15 |
title="My Fun Image App",
|
| 16 |
description="Upload an image and see a grayscale version!"
|
| 17 |
)
|
| 18 |
|
| 19 |
+
iface.launch()
|