Boni98 commited on
Commit
49dedaf
·
1 Parent(s): 2a38f39
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +16 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def create_binary_mask(im_dict):
21
  if im_dict is None or im_dict["background"] is None:
22
  print("No background image found.")
23
  # Return a small blank placeholder and None for the file path
24
- blank_preview = np.zeros((100, 100), dtype=np.uint8)
25
  return blank_preview, None
26
 
27
  background_img = im_dict["background"]
 
21
  if im_dict is None or im_dict["background"] is None:
22
  print("No background image found.")
23
  # Return a small blank placeholder and None for the file path
24
+ blank_preview = np.zeros((768, 1024), dtype=np.uint8)
25
  return blank_preview, None
26
 
27
  background_img = im_dict["background"]
requirements.txt CHANGED
@@ -1 +1,16 @@
1
- gradio==4.44.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ pydantic==2.10.6
2
+ numpy==1.26.4
3
+ opencv_python==4.10.0.84
4
+ pillow==10.3.0
5
+ PyYAML==6.0.1
6
+ scipy==1.13.1
7
+ setuptools==51.0.0
8
+ scikit-image==0.24.0
9
+ tqdm==4.66.4
10
+ transformers==4.46.3
11
+ fvcore==0.1.5.post20221221
12
+ cloudpickle==3.0.0
13
+ omegaconf==2.3.0
14
+ av==12.3.0
15
+ gradio==4.41.0
16
+ huggingface_hub==0.25.0