Spaces:
Running
Running
Commit ·
2da4017
1
Parent(s): 4dab9fb
fix
Browse files
app.py
CHANGED
|
@@ -40,10 +40,10 @@ if not model_file.exists():
|
|
| 40 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 41 |
print(f"Using device: {device}")
|
| 42 |
|
| 43 |
-
# Initialize configuration
|
| 44 |
config = Config(
|
| 45 |
device=DeviceConfig(device=device),
|
| 46 |
-
tokenizer=CLIPTokenizer.from_pretrained("
|
| 47 |
)
|
| 48 |
|
| 49 |
# Load models
|
|
|
|
| 40 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 41 |
print(f"Using device: {device}")
|
| 42 |
|
| 43 |
+
# Initialize configuration - use the correct tokenizer for SD 2.1
|
| 44 |
config = Config(
|
| 45 |
device=DeviceConfig(device=device),
|
| 46 |
+
tokenizer=CLIPTokenizer.from_pretrained("laion/CLIP-ViT-H-14-laion2B-s32B-b79K")
|
| 47 |
)
|
| 48 |
|
| 49 |
# Load models
|