debugging
Browse files
app.py
CHANGED
@@ -206,19 +206,19 @@ with gr.Blocks() as demo:
|
|
206 |
trial_id = gr.Textbox(visible=False)
|
207 |
output_buf = gr.State()
|
208 |
|
209 |
-
#
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
|
223 |
# Handlers
|
224 |
image_prompt.upload(
|
|
|
206 |
trial_id = gr.Textbox(visible=False)
|
207 |
output_buf = gr.State()
|
208 |
|
209 |
+
# Example images at the bottom of the page
|
210 |
+
with gr.Row():
|
211 |
+
examples = gr.Examples(
|
212 |
+
examples=[
|
213 |
+
f'assets/example_image/{image}'
|
214 |
+
for image in os.listdir("assets/example_image")
|
215 |
+
],
|
216 |
+
inputs=[image_prompt],
|
217 |
+
fn=preprocess_image,
|
218 |
+
outputs=[trial_id, image_prompt],
|
219 |
+
run_on_click=True,
|
220 |
+
examples_per_page=64,
|
221 |
+
)
|
222 |
|
223 |
# Handlers
|
224 |
image_prompt.upload(
|