gensym commited on
Commit
575b507
·
1 Parent(s): b77fe63
Files changed (1) hide show
  1. app.py +13 -13
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
- # # 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(
 
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(