Akjava commited on
Commit
379ca27
1 Parent(s): f0b494d

change simple

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -90,7 +90,7 @@ with demo_blocks as demo:
90
 
91
  with gr.Column():
92
  image_out = gr.Image(height=800,sources=[],label="Output", elem_id="output-img",format="jpeg")
93
- test_out = gr.Image(sources=[],label="Example", elem_id="output-img2",type="filepath",format="webp")
94
 
95
 
96
 
@@ -98,15 +98,15 @@ with demo_blocks as demo:
98
  btn.click(fn=process_images, inputs=[image, image_mask,prompt,inpaint_model,strength,seed], outputs =image_out, api_name='infer')
99
  gr.Examples(
100
  examples=[
101
- ["images/00547245_99.jpg", "images/00547245_99_mask.jpg","a beautiful girl,eyes closed",0.8,"00547245"],
102
- ["images/00538245_paint.jpg", "images/00538245_mask.jpg","a beautiful girl,wearing t-shirt",0.7,"00538245"],
103
- ["images/00207245_18.jpg", "images/00207245_18_mask.jpg","a beautiful girl,mouth opened",0.2,"00207245"]
104
  ]
105
  ,
106
- fn=example_out,
107
- inputs=[image,image_mask,prompt,strength,id_input],
108
- outputs=[test_out],
109
- cache_examples=True,
110
  )
111
  gr.HTML(
112
  """
 
90
 
91
  with gr.Column():
92
  image_out = gr.Image(height=800,sources=[],label="Output", elem_id="output-img",format="jpeg")
93
+ test_out = gr.Image(sources=['upload','clipboard'],label="Dummy Example", elem_id="output-img2",type="pil")
94
 
95
 
96
 
 
98
  btn.click(fn=process_images, inputs=[image, image_mask,prompt,inpaint_model,strength,seed], outputs =image_out, api_name='infer')
99
  gr.Examples(
100
  examples=[
101
+ ["images/00547245_99.jpg", "images/00547245_99_mask.jpg","a beautiful girl,eyes closed",0.8,"images/00547245.jpg"],
102
+ ["images/00538245_paint.jpg", "images/00538245_mask.jpg","a beautiful girl,wearing t-shirt",0.7,"images/00538245.jpg"],
103
+ ["images/00207245_18.jpg", "images/00207245_18_mask.jpg","a beautiful girl,mouth opened",0.2,"images/00207245.jpg"]
104
  ]
105
  ,
106
+ #fn=example_out,
107
+ inputs=[image,image_mask,prompt,strength,image_out],
108
+ #outputs=[test_out],
109
+ #cache_examples=False,
110
  )
111
  gr.HTML(
112
  """