PanagiotaMoraiti commited on
Commit
a781330
·
verified ·
1 Parent(s): 40d10ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -18,7 +18,10 @@ enable_queue=True
18
 
19
  gr.Interface(
20
  fn=predict,
21
- inputs=gr.inputs.Image(shape=(512, 512)),
 
 
 
22
  outputs=gr.outputs.Label(num_top_classes=4),
23
  title=title,
24
  description=description,
 
18
 
19
  gr.Interface(
20
  fn=predict,
21
+ inputs=[
22
+ gr.inputs.Image(shape=(512, 512),
23
+ gr.Image(source="webcam", shape=(512, 512), label="Capture from Webcam")
24
+ ]
25
  outputs=gr.outputs.Label(num_top_classes=4),
26
  title=title,
27
  description=description,