FedeFT commited on
Commit
2463756
·
verified ·
1 Parent(s): fc2a839

update gradio function

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -216,7 +216,7 @@ if __name__=='__main__':
216
  with gr.Tab("demo_webcam"):
217
  with gr.Row():
218
  with gr.Column():
219
- input_img = gr.Image(label="Input Image", source="webcam")
220
  button = gr.Button(label="RUN", type="default")
221
  laeo = gr.Checkbox(value=True, label="LAEO", info="Compute and display LAEO")
222
  rgb = gr.Checkbox(value=False, label="rgb", info="Display output on W/B image")
@@ -245,7 +245,7 @@ if __name__=='__main__':
245
  with gr.Tab("demo_upload"):
246
  with gr.Row():
247
  with gr.Column():
248
- input_img = gr.Image(label="Input Image", source="upload")
249
  button = gr.Button(label="RUN", type="default")
250
  laeo = gr.Checkbox(value=True, label="LAEO", info="Compute and display LAEO")
251
  rgb = gr.Checkbox(value=False, label="rgb", info="Display output on W/B image")
 
216
  with gr.Tab("demo_webcam"):
217
  with gr.Row():
218
  with gr.Column():
219
+ input_img = gr.Image(label="Input Image", sources="webcam")
220
  button = gr.Button(label="RUN", type="default")
221
  laeo = gr.Checkbox(value=True, label="LAEO", info="Compute and display LAEO")
222
  rgb = gr.Checkbox(value=False, label="rgb", info="Display output on W/B image")
 
245
  with gr.Tab("demo_upload"):
246
  with gr.Row():
247
  with gr.Column():
248
+ input_img = gr.Image(label="Input Image", sources="upload")
249
  button = gr.Button(label="RUN", type="default")
250
  laeo = gr.Checkbox(value=True, label="LAEO", info="Compute and display LAEO")
251
  rgb = gr.Checkbox(value=False, label="rgb", info="Display output on W/B image")