WithAnyone commited on
Commit
8b424c5
·
verified ·
1 Parent(s): 36c3710

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -18,6 +18,10 @@ from withanyone.flux.pipeline import WithAnyonePipeline
18
  from util import extract_moref, face_preserving_resize
19
  import insightface
20
 
 
 
 
 
21
 
22
  def captioner(prompt: str, num_person = 1) -> List[List[float]]:
23
  # use random choose for testing
 
18
  from util import extract_moref, face_preserving_resize
19
  import insightface
20
 
21
+ token = os.getenv("HF_KEY")
22
+
23
+ import subprocess
24
+ subprocess.run(["huggingface-cli", "login", "--token", token])
25
 
26
  def captioner(prompt: str, num_person = 1) -> List[List[float]]:
27
  # use random choose for testing