onipot commited on
Commit
97c387b
1 Parent(s): c12cb7e

fix examples

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -106,7 +106,7 @@ def main():
106
  </ul>
107
  """
108
 
109
- examples = [['images/1.jpg'], ['images/2.jpg'], ['images/3.jpg'], ['images/4.jpg'], ['images/5.jpg'], ]
110
 
111
  gr.Interface(run_yolo, [input, augment_preds], outputs, title=title, description=description, article=article, examples=examples, theme="huggingface").launch(enable_queue=True, ) # share=True
112
 
 
106
  </ul>
107
  """
108
 
109
+ examples = [[Image.open('images/1.jpg').convert("RGB"), False],[Image.open('images/2.jpg').convert("RGB"), False],[Image.open('images/3.jpg').convert("RGB"), False],[Image.open('images/4.jpg').convert("RGB"), False],[Image.open('images/5.jpg').convert("RGB"), False]]
110
 
111
  gr.Interface(run_yolo, [input, augment_preds], outputs, title=title, description=description, article=article, examples=examples, theme="huggingface").launch(enable_queue=True, ) # share=True
112