ardavey commited on
Commit
25835df
·
verified ·
1 Parent(s): e41eb69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
6
  # Load the model and processor
7
  model_id = "brucewayne0459/paligemma_derm"
8
  processor = AutoProcessor.from_pretrained(model_id)
9
- model = PaliGemmaForConditionalGeneration.from_pretrained(model_id, device_map={"": 0})
10
  model.eval()
11
 
12
  # Set device
 
6
  # Load the model and processor
7
  model_id = "brucewayne0459/paligemma_derm"
8
  processor = AutoProcessor.from_pretrained(model_id)
9
+ model = PaliGemmaForConditionalGeneration.from_pretrained(model_id)
10
  model.eval()
11
 
12
  # Set device