Spaces:
Running
on
Zero
Running
on
Zero
Yuxuan Zhang
commited on
Commit
·
4945e79
1
Parent(s):
14ae48c
local
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from openai import OpenAI
|
|
13 |
|
14 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
15 |
|
16 |
-
pipe = CogView4Pipeline.from_pretrained("/
|
17 |
|
18 |
|
19 |
def clean_string(s):
|
|
|
13 |
|
14 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
15 |
|
16 |
+
pipe = CogView4Pipeline.from_pretrained("ZP2HF/CogView4-6B-0125", torch_dtype=torch.bfloat16).to(device)
|
17 |
|
18 |
|
19 |
def clean_string(s):
|