os1187 commited on
Commit
13f19f6
·
1 Parent(s): 792e4a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
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():