BenTouss commited on
Commit
7a73f30
·
1 Parent(s): 570bdd4

change sources for input

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def predict(input_img):
9
 
10
  gradio_app = gr.Interface(
11
  predict,
12
- inputs=gr.Image(label="Select hot dog candidate", type="pil"),
13
  outputs=[gr.Label(label="Result", num_top_classes=2), gr.Image(label="Processed Image")],
14
  title="Hot Dog? Or Not?",
15
  )
 
9
 
10
  gradio_app = gr.Interface(
11
  predict,
12
+ inputs=gr.Image(label="Select hot dog candidate", sources=['upload', 'webcam'], type="pil"),
13
  outputs=[gr.Label(label="Result", num_top_classes=2), gr.Image(label="Processed Image")],
14
  title="Hot Dog? Or Not?",
15
  )