saicharan1234 commited on
Commit
f9fb7d7
·
verified ·
1 Parent(s): 6145eb5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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 = "your_huggingface_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,
 
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,