micole66 commited on
Commit
dcef9e4
1 Parent(s): cedda6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "timm/ViT-L-16-SigLIP-384"
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.")