Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ from spaces import GPU
|
|
7 |
HF_HUB = "stepfun-ai/NextStep-1-Large"
|
8 |
|
9 |
# Load model & tokenizer
|
10 |
-
tokenizer = AutoTokenizer.from_pretrained(HF_HUB,
|
11 |
-
model = AutoModel.from_pretrained(HF_HUB,
|
12 |
pipeline = NextStepPipeline(tokenizer=tokenizer, model=model).to(device="cuda", dtype=torch.bfloat16)
|
13 |
|
14 |
IMG_SIZE = 512
|
|
|
7 |
HF_HUB = "stepfun-ai/NextStep-1-Large"
|
8 |
|
9 |
# Load model & tokenizer
|
10 |
+
tokenizer = AutoTokenizer.from_pretrained(HF_HUB, trust_remote_code=True)
|
11 |
+
model = AutoModel.from_pretrained(HF_HUB, trust_remote_code=True)
|
12 |
pipeline = NextStepPipeline(tokenizer=tokenizer, model=model).to(device="cuda", dtype=torch.bfloat16)
|
13 |
|
14 |
IMG_SIZE = 512
|