Yaron Koresh commited on
Commit
12672aa
·
verified ·
1 Parent(s): ff8b178

Update app.py

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