Danzer93 commited on
Commit
09c3c4a
·
verified ·
1 Parent(s): f96adb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -26,7 +26,12 @@ 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 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")
 
26
  # Interfaccia Gradio
27
  demo = gr.Interface(
28
  fn=remove_background,
29
+ inputs=gr.Image(
30
+ type="pil",
31
+ label="Carica un'immagine o usa la webcam",
32
+ sources=["upload", "webcam"],
33
+ tool="editor"
34
+ ),
35
  outputs=[
36
  gr.Image(type="pil", label="Immagine senza sfondo"),
37
  gr.File(label="Scarica il file PNG")