Moibe commited on
Commit
0fe10a1
·
1 Parent(s): 8de9717

Interface on blocks

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -87,11 +87,15 @@ label = gr.Label("Hola!")
87
  buy = gr.Button("Buy More", visible=True, size='lg')
88
  imagen = gr.Image('no-result.png', show_download_button=False, visible=True)
89
 
90
- demo = gr.Interface(
91
- fn=perform,
92
- title="",
93
- inputs=[gr.Image(), gr.Image()],
94
- outputs=[gr.Image(),label, buy, imagen],
95
- css="footer {visibility: hidden}"
96
- )
97
- demo.launch(auth=authenticate)
 
 
 
 
 
87
  buy = gr.Button("Buy More", visible=True, size='lg')
88
  imagen = gr.Image('no-result.png', show_download_button=False, visible=True)
89
 
90
+ with gr.Blocks() as main:
91
+
92
+ demo = gr.Interface(
93
+ fn=perform,
94
+ title="",
95
+ inputs=[gr.Image(), gr.Image()],
96
+ outputs=[gr.Image(),label, buy, imagen],
97
+ css="footer {visibility: hidden}"
98
+ )
99
+
100
+ main.launch(auth=authenticate)
101
+ #demo.launch(auth=authenticate)