tomaseo2022 commited on
Commit
291c9e6
Β·
1 Parent(s): 42acd7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import os
2
  os.system("pip install opencv-python")
3
  os.system("pip install gradio --upgrade")
 
4
 
5
  import gradio as gr
6
  import cv2
@@ -19,4 +20,4 @@ def image_to_silhouette(image):
19
  return silhouette
20
 
21
  # Crear interfaz de usuario con Gradio
22
- gr.Interface(image_to_silhouette, gr.inputs.Image(label="Input"), gr.outputs.Image(label="Output"), css="Footer {visibility: hidden}").launch()
 
1
  import os
2
  os.system("pip install opencv-python")
3
  os.system("pip install gradio --upgrade")
4
+ os.system("pip install pillow")
5
 
6
  import gradio as gr
7
  import cv2
 
20
  return silhouette
21
 
22
  # Crear interfaz de usuario con Gradio
23
+ gr.Interface(image_to_silhouette, gr.inputs.Image(label="Input"), gr.outputs.Image(type="jpeg", label="Output"), css="Footer {visibility: hidden}").launch()