BleachNick commited on
Commit
d1d12e1
1 Parent(s): 3188b31

upload requirements.txt

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -5,11 +5,10 @@ import gradio as gr
5
  import PIL.Image
6
  import numpy as np
7
  from PIL import Image, ImageOps
 
 
8
 
9
-
10
- pipe = StableDiffusion3InstructPix2PixPipeline.from_pretrained("BleachNick/SD3_UltraEdit_w_mask", torch_dtype=torch.float16)
11
-
12
- pipe = pipe.to("cuda")
13
 
14
 
15
  @spaces.GPU(duration=120)
 
5
  import PIL.Image
6
  import numpy as np
7
  from PIL import Image, ImageOps
8
+ import os
9
+ hf_token = os.environ['HF_TOKEN']
10
 
11
+ pipe = StableDiffusion3InstructPix2PixPipeline.from_pretrained("BleachNick/SD3_UltraEdit_w_mask", torch_dtype=torch.float16,hf_token=hf_token).to("cuda")
 
 
 
12
 
13
 
14
  @spaces.GPU(duration=120)