MuGeminorum commited on
Commit
b7472a4
1 Parent(s): cadcfd6

add example

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -90,10 +90,15 @@ def inference(image_path, weight_path="model-122000.pth"):
90
 
91
 
92
  if __name__ == '__main__':
 
 
 
 
93
  iface = gr.Interface(
94
  fn=inference,
95
  inputs=gr.Image(type='filepath'),
96
- outputs=gr.Textbox()
 
97
  )
98
 
99
  iface.launch()
 
90
 
91
 
92
  if __name__ == '__main__':
93
+ example_images = [
94
+ '457.png'
95
+ ]
96
+
97
  iface = gr.Interface(
98
  fn=inference,
99
  inputs=gr.Image(type='filepath'),
100
+ outputs=gr.Textbox(),
101
+ examples=example_images
102
  )
103
 
104
  iface.launch()