Yaron Koresh commited on
Commit
f8416cc
·
verified ·
1 Parent(s): 5108d90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ from diffusers.pipelines.flux import FluxPipeline
16
  #from safetensors.torch import load_file
17
 
18
  device = "cuda" if torch.cuda.is_available() else "cpu"
19
- dtype = torch.float16
20
  pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, token=os.getenv("hf_token")).to(device)
21
 
22
  def translate(text,lang):
 
16
  #from safetensors.torch import load_file
17
 
18
  device = "cuda" if torch.cuda.is_available() else "cpu"
19
+ dtype = torch.bfloat16
20
  pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, token=os.getenv("hf_token")).to(device)
21
 
22
  def translate(text,lang):