Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -113,8 +113,25 @@ title="Image to Coloring Page Generator"
|
|
113 |
# ['01.jpeg', 'Complex Lines'],
|
114 |
#]
|
115 |
|
116 |
-
|
117 |
-
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
|
120 |
iface.launch()
|
|
|
113 |
# ['01.jpeg', 'Complex Lines'],
|
114 |
#]
|
115 |
|
116 |
+
image = gr.Image(
|
117 |
+
source="canvas",
|
118 |
+
tool="sketch",
|
119 |
+
type="pil",
|
120 |
+
image_mode="L",
|
121 |
+
invert_colors=True,
|
122 |
+
shape=(1024, 1024),
|
123 |
+
brush_radius=4,
|
124 |
+
height=440,
|
125 |
+
)
|
126 |
+
|
127 |
+
iface = gr.Interface(predict,
|
128 |
+
image,
|
129 |
+
#gr.outputs.Image(type="pil"))
|
130 |
+
image)
|
131 |
+
|
132 |
+
|
133 |
+
# iface = gr.Interface(predict, [gr.inputs.Image(type='filepath')],
|
134 |
+
# #gr.inputs.Radio(['Complex Lines'], type="value", default='Complex Lines', label='version')],
|
135 |
+
# gr.outputs.Image(type="pil"))
|
136 |
|
137 |
iface.launch()
|