Spaces:
Running
on
Zero
Running
on
Zero
SunderAli17
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ from insightface.data import get_image as ins_get_image
|
|
20 |
|
21 |
|
22 |
device = "cuda"
|
23 |
-
|
24 |
-
|
25 |
|
26 |
text_encoder = ChatGLMModel.from_pretrained(f'{ckpt_dir}/text_encoder', torch_dtype=torch.float16).half().to(device)
|
27 |
tokenizer = ChatGLMTokenizer.from_pretrained(f'{ckpt_dir}/text_encoder')
|
@@ -119,8 +119,8 @@ def infer(prompt,
|
|
119 |
|
120 |
|
121 |
examples = [
|
122 |
-
["wearing a full suit sitting in a restaurant with candle lights ", "image/image1.png"]
|
123 |
-
["Cowboy, cowboy hat, Wild Cowboy, background is a western town, cactus, sunset, warm colors, shot with XT4 film, noise, vignette, Kodak film, vintage", "image/image2.png"]
|
124 |
]
|
125 |
|
126 |
|
|
|
20 |
|
21 |
|
22 |
device = "cuda"
|
23 |
+
ckpt_dir = snapshot_download(repo_id="SunderAli17/SAK")
|
24 |
+
ckpt_dir_faceid = snapshot_download(repo_id="SunderAli17/SAK-IP-Adapter-FaceTransform-Plus")
|
25 |
|
26 |
text_encoder = ChatGLMModel.from_pretrained(f'{ckpt_dir}/text_encoder', torch_dtype=torch.float16).half().to(device)
|
27 |
tokenizer = ChatGLMTokenizer.from_pretrained(f'{ckpt_dir}/text_encoder')
|
|
|
119 |
|
120 |
|
121 |
examples = [
|
122 |
+
["wearing a full suit sitting in a restaurant with candle lights ", "image/image1.png"]
|
123 |
+
# ["Cowboy, cowboy hat, Wild Cowboy, background is a western town, cactus, sunset, warm colors, shot with XT4 film, noise, vignette, Kodak film, vintage", "image/image2.png"]
|
124 |
]
|
125 |
|
126 |
|