Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|