Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,12 +66,11 @@ examples =[['publaynet_example.jpeg']]
|
|
| 66 |
css = ".output-image, .input-image, .image-preview {height: 600px !important}"
|
| 67 |
|
| 68 |
iface = gr.Interface(fn=analyze_image,
|
| 69 |
-
inputs=gr.
|
| 70 |
-
outputs=gr.
|
| 71 |
title=title,
|
| 72 |
description=description,
|
| 73 |
examples=examples,
|
| 74 |
article=article,
|
| 75 |
-
css=css
|
| 76 |
-
|
| 77 |
-
iface.launch(debug=True, cache_examples=True)
|
|
|
|
| 66 |
css = ".output-image, .input-image, .image-preview {height: 600px !important}"
|
| 67 |
|
| 68 |
iface = gr.Interface(fn=analyze_image,
|
| 69 |
+
inputs=gr.Image(type="numpy", label="document image"),
|
| 70 |
+
outputs=gr.Image(type="numpy", label="annotated document"),
|
| 71 |
title=title,
|
| 72 |
description=description,
|
| 73 |
examples=examples,
|
| 74 |
article=article,
|
| 75 |
+
css=css)
|
| 76 |
+
iface.queue(5).launch()
|
|
|