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