samuellimabraz commited on
Commit
fe9f39b
·
unverified ·
1 Parent(s): 96edac3

fix: Adjust example image indexing to prevent off-by-one error in Gradio interface

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -221,7 +221,7 @@ def create_gradio_interface():
221
 
222
  gr.Examples(
223
  examples=[
224
- ["assets/images/example_{i}.jpg".format(i=i)] for i in range(0, len(os.listdir(os.path.join("assets", "images")))+1)
225
  ],
226
  inputs=input_image,
227
  outputs=output_image,
 
221
 
222
  gr.Examples(
223
  examples=[
224
+ ["assets/images/example_{i}.jpg".format(i=i)] for i in range(0, len(os.listdir(os.path.join("assets", "images"))))
225
  ],
226
  inputs=input_image,
227
  outputs=output_image,