Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import cv2
|
|
| 3 |
import numpy as np
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
-
def process_image(image
|
| 7 |
"""
|
| 8 |
Process an uploaded or captured image: convert it to grayscale.
|
| 9 |
"""
|
|
@@ -24,10 +24,10 @@ def process_image(image, capture_from_webcam=False):
|
|
| 24 |
# Create the Gradio interface
|
| 25 |
with gr.Blocks() as demo:
|
| 26 |
gr.Markdown("# Image Capture and Processing App")
|
| 27 |
-
gr.Markdown("Upload an image or
|
| 28 |
|
| 29 |
# Input section
|
| 30 |
-
image_input = gr.Image(type="pil", label="Upload or Capture Image"
|
| 31 |
|
| 32 |
# Output section
|
| 33 |
output_image = gr.Image(type="pil", label="Processed Image")
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
+
def process_image(image):
|
| 7 |
"""
|
| 8 |
Process an uploaded or captured image: convert it to grayscale.
|
| 9 |
"""
|
|
|
|
| 24 |
# Create the Gradio interface
|
| 25 |
with gr.Blocks() as demo:
|
| 26 |
gr.Markdown("# Image Capture and Processing App")
|
| 27 |
+
gr.Markdown("Upload an image or capture one, and convert it to grayscale!")
|
| 28 |
|
| 29 |
# Input section
|
| 30 |
+
image_input = gr.Image(type="pil", label="Upload or Capture Image")
|
| 31 |
|
| 32 |
# Output section
|
| 33 |
output_image = gr.Image(type="pil", label="Processed Image")
|