Spaces:
Runtime error
Runtime error
trying and trying
Browse files
app.py
CHANGED
|
@@ -86,17 +86,16 @@ examples =[['test0.jpeg'],['./test1.jpeg'],['test2.jpeg']]
|
|
| 86 |
#css = ".output-image, .input-image"
|
| 87 |
#css = ".output-image, .input-image {height: 40rem !important; width: 100% !important;}"
|
| 88 |
#css = "@media screen and (max-width: 600px) { .output_image, .input_image {height:20rem !important; width: 100% !important;} }"
|
| 89 |
-
css = ".output_image {height: 600px !important}, .input_image {height: 300px !important}"
|
| 90 |
|
| 91 |
css = ".image-preview {height: auto !important;}"
|
| 92 |
|
| 93 |
iface = gr.Interface(fn=process_image,
|
| 94 |
-
inputs=gr.inputs.Image(type="pil"),
|
| 95 |
-
outputs=gr.outputs.Image(type="pil", label="annotated image",
|
| 96 |
title=title,
|
| 97 |
description=description,
|
| 98 |
article=article,
|
| 99 |
examples=examples,
|
| 100 |
-
css=css
|
| 101 |
-
enable_queue=True)
|
| 102 |
iface.launch(debug=True)
|
|
|
|
| 86 |
#css = ".output-image, .input-image"
|
| 87 |
#css = ".output-image, .input-image {height: 40rem !important; width: 100% !important;}"
|
| 88 |
#css = "@media screen and (max-width: 600px) { .output_image, .input_image {height:20rem !important; width: 100% !important;} }"
|
| 89 |
+
#css = ".output_image {height: 600px !important}, .input_image {height: 300px !important}"
|
| 90 |
|
| 91 |
css = ".image-preview {height: auto !important;}"
|
| 92 |
|
| 93 |
iface = gr.Interface(fn=process_image,
|
| 94 |
+
inputs=gr.inputs.Image(type="pil", tool="editor"),
|
| 95 |
+
outputs=gr.outputs.Image(type="pil", label="annotated image", shape=(600, None)),
|
| 96 |
title=title,
|
| 97 |
description=description,
|
| 98 |
article=article,
|
| 99 |
examples=examples,
|
| 100 |
+
css=css)
|
|
|
|
| 101 |
iface.launch(debug=True)
|