SkalskiP commited on
Commit
c72c156
·
1 Parent(s): 9f72387

bring back token

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -1,4 +1,3 @@
1
- import os
2
  import cv2
3
  import random
4
  from typing import Tuple, Optional
@@ -19,15 +18,12 @@ creating this amazing model, and a big thanks to [Gothos](https://github.com/Got
19
  for taking it to the next level by enabling inpainting with the FLUX.
20
  """
21
 
22
- os.environ.pop('HF_TOKEN', None)
23
- CLIENT = Client("SkalskiP/florence-sam-masking")
24
-
25
  MAX_SEED = np.iinfo(np.int32).max
26
  IMAGE_SIZE = 1024
27
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
28
  PIPE = FluxInpaintPipeline.from_pretrained(
29
  "black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16).to(DEVICE)
30
-
31
 
32
 
33
  # def remove_background(image: Image.Image, threshold: int = 50) -> Image.Image:
 
 
1
  import cv2
2
  import random
3
  from typing import Tuple, Optional
 
18
  for taking it to the next level by enabling inpainting with the FLUX.
19
  """
20
 
 
 
 
21
  MAX_SEED = np.iinfo(np.int32).max
22
  IMAGE_SIZE = 1024
23
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
24
  PIPE = FluxInpaintPipeline.from_pretrained(
25
  "black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16).to(DEVICE)
26
+ CLIENT = Client("SkalskiP/florence-sam-masking")
27
 
28
 
29
  # def remove_background(image: Image.Image, threshold: int = 50) -> Image.Image: