Danzer93 commited on
Commit
7450a6a
·
verified ·
1 Parent(s): fc3c784

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def remove_background(image: Image.Image):
26
  # Interfaccia Gradio
27
  demo = gr.Interface(
28
  fn=remove_background,
29
- inputs=gr.Image(type="pil", label="Carica un'immagine"),
30
  outputs=[
31
  gr.Image(type="pil", label="Immagine senza sfondo"),
32
  gr.File(label="Scarica il file PNG")
 
26
  # Interfaccia Gradio
27
  demo = gr.Interface(
28
  fn=remove_background,
29
+ inputs=gr.Image(type="pil", label="Carica un'immagine o usa la webcam", source="upload", tool="editor"),
30
  outputs=[
31
  gr.Image(type="pil", label="Immagine senza sfondo"),
32
  gr.File(label="Scarica il file PNG")