fix button inputs
Browse files
app.py
CHANGED
@@ -184,12 +184,11 @@ button = gr.Button(label="Open link", onclick=open_link)
|
|
184 |
if __name__ == '__main__':
|
185 |
demo = gr.Interface(
|
186 |
fn=inference,
|
187 |
-
inputs=[gr.Image(source='webcam', shape=None, type='numpy')],
|
188 |
outputs=[
|
189 |
gr.Image(label='DeePixBiS', type='numpy'),
|
190 |
gr.Label(num_top_classes=2, label='DeePixBiS'),
|
191 |
gr.Image(label='DSDG', type='numpy'),
|
192 |
gr.Label(num_top_classes=2, label='DSDG')],
|
193 |
-
inputs=[button],
|
194 |
examples=examples).queue(concurrency_count=2)
|
195 |
demo.launch(share=False)
|
|
|
184 |
if __name__ == '__main__':
|
185 |
demo = gr.Interface(
|
186 |
fn=inference,
|
187 |
+
inputs=[gr.Image(source='webcam', shape=None, type='numpy'), button],
|
188 |
outputs=[
|
189 |
gr.Image(label='DeePixBiS', type='numpy'),
|
190 |
gr.Label(num_top_classes=2, label='DeePixBiS'),
|
191 |
gr.Image(label='DSDG', type='numpy'),
|
192 |
gr.Label(num_top_classes=2, label='DSDG')],
|
|
|
193 |
examples=examples).queue(concurrency_count=2)
|
194 |
demo.launch(share=False)
|