Glainez commited on
Commit
7e03464
1 Parent(s): 394fc8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def display_outputs(input_image):
20
 
21
  with gr.Blocks(title=title, theme='huggingface') as demo_app:
22
  with gr.Column():
23
- input_image = gr.Image(type='pil', label='TAKE A PICTURE OF THE TRAY', streaming=True)
24
  output_comments = gr.Textbox(label='Comments')
25
  input_image.change(display_outputs, inputs=[input_image], outputs=[output_comments])
26
 
 
20
 
21
  with gr.Blocks(title=title, theme='huggingface') as demo_app:
22
  with gr.Column():
23
+ input_image = gr.Image(type='pil', label='TAKE A PICTURE OF THE TRAY', sources=['webcam'])
24
  output_comments = gr.Textbox(label='Comments')
25
  input_image.change(display_outputs, inputs=[input_image], outputs=[output_comments])
26