Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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.
|
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):
|