fix: Adjust example image indexing to prevent off-by-one error in Gradio interface
Browse files
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")))
|
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,
|