Jinl commited on
Commit
a33ec77
1 Parent(s): 8a58d5a

update requirements

Browse files
Files changed (4) hide show
  1. app.py +2 -2
  2. images/content/1.jpg +0 -0
  3. images/style/1.jpg +0 -0
  4. requirements.txt +4 -1
app.py CHANGED
@@ -498,8 +498,8 @@ def ui():
498
  style_mask = gr.Image(label="Style Mask", elem_id="img2maskimg", source="upload", interactive=True, type="numpy", image_mode="RGB", height=256)
499
 
500
  gr.Examples(
501
- [[os.path.join(os.path.dirname(__file__), "gradio_app/images/content/1.jpg"),
502
- os.path.join(os.path.dirname(__file__), "gradio_app/images/style/1.jpg")],
503
 
504
  ],
505
  [source_image, style_image]
 
498
  style_mask = gr.Image(label="Style Mask", elem_id="img2maskimg", source="upload", interactive=True, type="numpy", image_mode="RGB", height=256)
499
 
500
  gr.Examples(
501
+ [[os.path.join(os.path.dirname(__file__), "images/content/1.jpg"),
502
+ os.path.join(os.path.dirname(__file__), "images/style/1.jpg")],
503
 
504
  ],
505
  [source_image, style_image]
images/content/1.jpg ADDED
images/style/1.jpg ADDED
requirements.txt CHANGED
@@ -1,7 +1,10 @@
1
- diffusers==0.15.0
2
  transformers
3
  opencv-python
4
  einops
5
  omegaconf
6
  pytorch_lightning
7
  torchvision
 
 
 
 
1
+ diffusers==0.21.4
2
  transformers
3
  opencv-python
4
  einops
5
  omegaconf
6
  pytorch_lightning
7
  torchvision
8
+ pillow
9
+ gradio==3.47.1
10
+ git+https://github.com/facebookresearch/segment-anything.git