Yaron Koresh commited on
Commit
afccd6e
·
verified ·
1 Parent(s): 7f06f4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ from pathos.threading import ThreadPool as Pool
16
  from diffusers import FlaxStableDiffusionPipeline
17
 
18
  device = "cuda" if torch.cuda.is_available() else "cpu"
19
- pipe = FlaxStableDiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16, token=os.getenv("hf_token")).to(device)
20
 
21
  def translate(text,lang):
22
 
 
16
  from diffusers import FlaxStableDiffusionPipeline
17
 
18
  device = "cuda" if torch.cuda.is_available() else "cpu"
19
+ pipe = FlaxStableDiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", token=os.getenv("hf_token")).to(device)
20
 
21
  def translate(text,lang):
22