Spaces:
Running
on
Zero
Running
on
Zero
Yuxuan Zhang
commited on
Commit
·
156ff8a
1
Parent(s):
4945e79
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("THUDM/CogView4-6B", torch_dtype=torch.bfloat16).to(device)
|
| 17 |
|
| 18 |
|
| 19 |
def clean_string(s):
|