Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -108,8 +108,6 @@ def predict(input_img, ver):
|
|
108 |
return drawing
|
109 |
|
110 |
title="Image to Line Drawings - Complex and Simple Portraits and Landscapes"
|
111 |
-
description="Image to Line Drawing"
|
112 |
-
# article = "<p style='text-align: center'></p>"
|
113 |
examples=[
|
114 |
['01.jpeg', 'Simple Lines'], ['02.jpeg', 'Simple Lines'], ['03.jpeg', 'Simple Lines'],
|
115 |
['04.jpeg', 'Simple Lines'], ['05.jpeg', 'Simple Lines'], ['06.jpeg', 'Simple Lines'],
|
@@ -121,7 +119,6 @@ examples=[
|
|
121 |
['10.jpeg', 'Complex Lines'], ['11.jpeg', 'Complex Lines'], ['12.jpeg', 'Complex Lines']
|
122 |
]
|
123 |
|
124 |
-
|
125 |
iface = gr.Interface(predict, [gr.inputs.Image(type='filepath'),
|
126 |
gr.inputs.Radio(['Complex Lines','Simple Lines'], type="value", default='Simple Lines', label='version')],
|
127 |
gr.outputs.Image(type="pil"), title=title,description=description,examples=examples)
|
|
|
108 |
return drawing
|
109 |
|
110 |
title="Image to Line Drawings - Complex and Simple Portraits and Landscapes"
|
|
|
|
|
111 |
examples=[
|
112 |
['01.jpeg', 'Simple Lines'], ['02.jpeg', 'Simple Lines'], ['03.jpeg', 'Simple Lines'],
|
113 |
['04.jpeg', 'Simple Lines'], ['05.jpeg', 'Simple Lines'], ['06.jpeg', 'Simple Lines'],
|
|
|
119 |
['10.jpeg', 'Complex Lines'], ['11.jpeg', 'Complex Lines'], ['12.jpeg', 'Complex Lines']
|
120 |
]
|
121 |
|
|
|
122 |
iface = gr.Interface(predict, [gr.inputs.Image(type='filepath'),
|
123 |
gr.inputs.Radio(['Complex Lines','Simple Lines'], type="value", default='Simple Lines', label='version')],
|
124 |
gr.outputs.Image(type="pil"), title=title,description=description,examples=examples)
|