tomaseo2022 commited on
Commit
7ce944b
Β·
1 Parent(s): 4dcd2d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -1,4 +1,5 @@
1
- import os
 
2
  os.system("pip install opencv-python")
3
  os.system("pip install gradio --upgrade")
4
  os.system("pip install gradio[eventjs] --upgrade")
@@ -40,9 +41,4 @@ def on_button_clicked(sender):
40
  output_box.value = silhouette
41
 
42
  # Muestra la interfaz
43
- app = gr.App(
44
- layout=gr.Column([input_box, convert_button, output_box]),
45
- title="Silueta",
46
- interface=interface
47
- )
48
- app.launch()
 
1
+ import os
2
+ os.system('/usr/local/bin/python -m pip install --upgrade pip')
3
  os.system("pip install opencv-python")
4
  os.system("pip install gradio --upgrade")
5
  os.system("pip install gradio[eventjs] --upgrade")
 
41
  output_box.value = silhouette
42
 
43
  # Muestra la interfaz
44
+ interface.launch(title="Silueta")