Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -184,6 +184,16 @@ def inference(image):
|
|
184 |
|
185 |
return img1, img2, img3, parts_list_damages
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
with gr.Blocks() as demo:
|
188 |
with gr.Row():
|
189 |
with gr.Column():
|
|
|
184 |
|
185 |
return img1, img2, img3, parts_list_damages
|
186 |
|
187 |
+
title="Example images"
|
188 |
+
examples=[
|
189 |
+
['01_NOR_Kratzer_4sp-720x340.jpg', 'Scratch']
|
190 |
+
|
191 |
+
iface = gr.Interface(predict, [gr.inputs.Image(type='filepath'),
|
192 |
+
gr.inputs.Radio(['Complex Lines','Simple Lines'], type="value", default='Simple Lines', label='version')],
|
193 |
+
gr.outputs.Image(type="pil"), title=title,examples=examples)
|
194 |
+
|
195 |
+
iface.launch()
|
196 |
+
|
197 |
with gr.Blocks() as demo:
|
198 |
with gr.Row():
|
199 |
with gr.Column():
|