niulx commited on
Commit
3108ba6
1 Parent(s): 1e24c4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -158,8 +158,8 @@ def load_pil_img():
158
  from PIL import Image
159
  return Image.open("example_tmp/text/out_text_0.png")
160
 
161
- def change_image(impath):
162
- return gr.Image(value = impath, type="numpy", height=LENGTH, width=LENGTH, interactive=True)
163
 
164
 
165
  import shutil
@@ -315,8 +315,8 @@ with gr.Blocks() as demo:
315
  return load_pil_img()
316
 
317
  example_inps = [['./img.png'],['./img2.png']]
318
- gr.Examples(examples=example_inps, inputs=[img_path],
319
- label='examples', cache_examples='lazy', outputs=[output_image],
320
  fn=change_image)
321
 
322
 
 
158
  from PIL import Image
159
  return Image.open("example_tmp/text/out_text_0.png")
160
 
161
+ def change_image(img):
162
+ return None
163
 
164
 
165
  import shutil
 
315
  return load_pil_img()
316
 
317
  example_inps = [['./img.png'],['./img2.png']]
318
+ gr.Examples(examples=example_inps, inputs=[canvas],
319
+ label='examples', cache_examples='lazy', outputs=[],
320
  fn=change_image)
321
 
322