bryanzhou008 commited on
Commit
551980e
·
verified ·
1 Parent(s): 80dc021

Update src/v2_for_hf.py

Browse files
Files changed (1) hide show
  1. src/v2_for_hf.py +3 -0
src/v2_for_hf.py CHANGED
@@ -6,7 +6,10 @@ import re
6
  from diffusers import DiffusionPipeline
7
  import torch
8
  from PIL import Image
 
9
  import os
 
 
10
 
11
  # Modfiy this to change the number of generations
12
  NUM_GEN = 2
 
6
  from diffusers import DiffusionPipeline
7
  import torch
8
  from PIL import Image
9
+
10
  import os
11
+ from huggingface_hub import login
12
+ login(token=os.environ.get("HF_token"))
13
 
14
  # Modfiy this to change the number of generations
15
  NUM_GEN = 2