open api
Browse files
app.py
CHANGED
|
@@ -185,5 +185,9 @@ with gr.Blocks(title="Barzooka: Graph-Type Screening") as demo:
|
|
| 185 |
imgs_out = gr.Dataframe(label="Results", wrap=True)
|
| 186 |
imgs_btn.click(fn=screen_images, inputs=imgs_input, outputs=imgs_out)
|
| 187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
if __name__ == "__main__":
|
| 189 |
-
demo.launch()
|
|
|
|
| 185 |
imgs_out = gr.Dataframe(label="Results", wrap=True)
|
| 186 |
imgs_btn.click(fn=screen_images, inputs=imgs_input, outputs=imgs_out)
|
| 187 |
|
| 188 |
+
demo.queue(api_open=True)
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
#In Spaces, you don’t need to call launch(); for local testing:
|
| 192 |
if __name__ == "__main__":
|
| 193 |
+
demo.queue(api_open=True).launch()
|