Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,8 @@ if torch.cuda.is_available():
|
|
23 |
)
|
24 |
#pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
|
25 |
# 加载支持更长序列的 Tokenizer 和文本编码器
|
26 |
-
tokenizer = CLIPTokenizer.from_pretrained("
|
27 |
-
text_encoder = CLIPTextModel.from_pretrained("
|
28 |
|
29 |
# 更新 pipeline
|
30 |
pipe.tokenizer = tokenizer
|
|
|
23 |
)
|
24 |
#pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
|
25 |
# 加载支持更长序列的 Tokenizer 和文本编码器
|
26 |
+
tokenizer = CLIPTokenizer.from_pretrained("John6666/noobai-xl-nai-xl-epsilonpred075version-sdxl", model_max_length=512)
|
27 |
+
text_encoder = CLIPTextModel.from_pretrained("John6666/noobai-xl-nai-xl-epsilonpred075version-sdxl", trust_remote_code=True)
|
28 |
|
29 |
# 更新 pipeline
|
30 |
pipe.tokenizer = tokenizer
|