karthikmn commited on
Commit
90732ab
·
verified ·
1 Parent(s): 95374a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, capture_from_webcam=False):
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 use your webcam to capture one, and convert it to grayscale!")
28
 
29
  # Input section
30
- image_input = gr.Image(type="pil", label="Upload or Capture Image", tool="editor")
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")