mkrzyzan commited on
Commit
56f32b6
β€’
1 Parent(s): 4211211
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -24,11 +24,15 @@ def predict(mask_img):
24
 
25
  return image.resize(size)
26
 
 
 
 
 
 
27
  demo = gr.Interface(
28
  fn=predict,
29
- inputs=gr.Image(source = 'upload', tool = 'sketch', type='pil'),
30
- outputs=gr.Image(),
31
- title="Stable Diffusion Inpainting"
32
  )
33
 
34
  demo.launch()
 
24
 
25
  return image.resize(size)
26
 
27
+ # def mirror(img):
28
+ # print(img['mask'])
29
+ # print(img['image'])
30
+ # return img['image'].rotate(45)
31
+
32
  demo = gr.Interface(
33
  fn=predict,
34
+ inputs=gr.Image(source = 'webcam', tool = 'sketch', type='pil', height=256, width=256),
35
+ outputs=gr.Image()
 
36
  )
37
 
38
  demo.launch()