ankanpy commited on
Commit
82426c7
·
verified ·
1 Parent(s): 4376ead

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -10,10 +10,9 @@ import time
10
  print("Loading MedGemma model...")
11
  pipe = pipeline(
12
  "image-text-to-text",
13
- model="unsloth/medgemma-4b-it-bnb-4bit",
14
  torch_dtype=torch.bfloat16,
15
- # device="cuda" if torch.cuda.is_available() else "cpu",
16
- device_map="auto",
17
  )
18
  print("Model loaded successfully!")
19
 
 
10
  print("Loading MedGemma model...")
11
  pipe = pipeline(
12
  "image-text-to-text",
13
+ model="google/medgemma-4b-it",
14
  torch_dtype=torch.bfloat16,
15
+ device="cuda" if torch.cuda.is_available() else "cpu",
 
16
  )
17
  print("Model loaded successfully!")
18