Spaces:
Paused
Paused
saicharan1234
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -16,7 +16,7 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
16 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
17 |
|
18 |
# Load pipelines
|
19 |
-
HF_TOKEN = "
|
20 |
pipe_xl_final = StableDiffusionXLPipeline.from_single_file(
|
21 |
hf_hub_download(repo_id="fluently/Fluently-XL-Final", filename="FluentlyXL-Final.safetensors", token=HF_TOKEN),
|
22 |
torch_dtype=torch.float16,
|
|
|
16 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
17 |
|
18 |
# Load pipelines
|
19 |
+
HF_TOKEN = os.getenv("HF_TOKEN") # Replace with your actual token
|
20 |
pipe_xl_final = StableDiffusionXLPipeline.from_single_file(
|
21 |
hf_hub_download(repo_id="fluently/Fluently-XL-Final", filename="FluentlyXL-Final.safetensors", token=HF_TOKEN),
|
22 |
torch_dtype=torch.float16,
|