Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,6 +51,35 @@ Due to the GPU memory limitations, the app might crash if you feed a high-resolu
|
|
51 |
<br>
|
52 |
'''
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
|
56 |
|
|
|
51 |
<br>
|
52 |
'''
|
53 |
|
54 |
+
examples = [['examples/inputs/0010.png'],
|
55 |
+
['examples/inputs/0060.png'],
|
56 |
+
['examples/inputs/0075.png'],
|
57 |
+
["examples/inputs/0087.png"],
|
58 |
+
["examples/inputs/0088.png"]]
|
59 |
+
|
60 |
+
css = """
|
61 |
+
.image-frame img, .image-container img {
|
62 |
+
width: auto;
|
63 |
+
height: auto;
|
64 |
+
max-width: none;
|
65 |
+
}
|
66 |
+
"""
|
67 |
+
|
68 |
+
demo = gr.Interface(
|
69 |
+
fn = process_img,
|
70 |
+
inputs = [
|
71 |
+
gr.Image(type = 'pil', label = 'input')
|
72 |
+
],
|
73 |
+
outputs = [gr.Image(type='pil', label = 'output')],
|
74 |
+
title = title,
|
75 |
+
description = description,
|
76 |
+
examples = examples,
|
77 |
+
css = css
|
78 |
+
)
|
79 |
+
|
80 |
+
if __name__ == '__main__':
|
81 |
+
demo.launch()
|
82 |
+
|
83 |
|
84 |
|
85 |
|