blanchon commited on
Commit
e4ee2ca
1 Parent(s): 3f0b1e1

Update examples

Browse files
rgb2x/gradio_demo_rgb2x.py CHANGED
@@ -141,6 +141,18 @@ with gr.Blocks() as demo:
141
  elem_id="gallery",
142
  columns=2,
143
  )
 
 
 
 
 
 
 
 
 
 
 
 
144
 
145
  run_button.click(
146
  fn=generate,
 
141
  elem_id="gallery",
142
  columns=2,
143
  )
144
+ examples = gr.Examples(
145
+ examples=[
146
+ [
147
+ "rgb2x/example/Castlereagh_corridor_photo.png",
148
+ ]
149
+ ],
150
+ inputs=[photo],
151
+ outputs=[result_gallery],
152
+ fn=generate,
153
+ cache_mode="eager",
154
+ cache_examples=True,
155
+ )
156
 
157
  run_button.click(
158
  fn=generate,
x2rgb/gradio_demo_x2rgb.py CHANGED
@@ -212,6 +212,7 @@ with gr.Blocks() as demo:
212
  image_guidance_scale,
213
  ],
214
  outputs=[result_gallery],
 
215
  cache_mode="eager",
216
  cache_examples=True,
217
  )
 
212
  image_guidance_scale,
213
  ],
214
  outputs=[result_gallery],
215
+ fn=generate,
216
  cache_mode="eager",
217
  cache_examples=True,
218
  )