John6666 commited on
Commit
b27b4a2
·
verified ·
1 Parent(s): c75139c

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,8 @@ import subprocess
12
 
13
  device = "cuda" if torch.cuda.is_available() else "cpu"
14
 
15
- model_id = "vikhyatk/moondream2"
 
16
  #model_id = "zesquirrelnator/moondream2-finetuneV2"
17
  #revision = "2024-08-26"
18
  #tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
@@ -25,7 +26,6 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
25
  #).to(device)
26
  moondream = ORTModelForImageClassification.from_pretrained(
27
  model_id, trust_remote_code=True,
28
- from_transformers=True
29
  ).to(device)
30
 
31
  moondream.eval()
 
12
 
13
  device = "cuda" if torch.cuda.is_available() else "cpu"
14
 
15
+ #model_id = "vikhyatk/moondream2"
16
+ model_id = "Xenova/moondream2"
17
  #model_id = "zesquirrelnator/moondream2-finetuneV2"
18
  #revision = "2024-08-26"
19
  #tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
 
26
  #).to(device)
27
  moondream = ORTModelForImageClassification.from_pretrained(
28
  model_id, trust_remote_code=True,
 
29
  ).to(device)
30
 
31
  moondream.eval()