Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
11 |
weight_dtype = torch.bfloat16 if device == "cuda" else torch.float32
|
12 |
print(f"Using device: {device} ({weight_dtype})")
|
13 |
print("Loading model...")
|
14 |
-
model_pretrained_name_or_path = "
|
15 |
processor = AutoProcessor.from_pretrained(model_pretrained_name_or_path)
|
16 |
model = AutoModel.from_pretrained(model_pretrained_name_or_path, torch_dtype=weight_dtype).eval().to(device)
|
17 |
print("Model loaded.")
|
|
|
11 |
weight_dtype = torch.bfloat16 if device == "cuda" else torch.float32
|
12 |
print(f"Using device: {device} ({weight_dtype})")
|
13 |
print("Loading model...")
|
14 |
+
model_pretrained_name_or_path = "facebook/metaclip-h14-fullcc2.5b"
|
15 |
processor = AutoProcessor.from_pretrained(model_pretrained_name_or_path)
|
16 |
model = AutoModel.from_pretrained(model_pretrained_name_or_path, torch_dtype=weight_dtype).eval().to(device)
|
17 |
print("Model loaded.")
|