Mediocreatmybest commited on
Commit
fc57202
1 Parent(s): bca9f16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ CAPTION_MODELS = {
14
  captioner = pipeline(task="image-to-text",
15
  model=CAPTION_MODELS['blip-base'],
16
  max_new_tokens=30,
17
- device_map="auto", use_fast=True
18
  )
19
 
20
  # Simple caption creation
 
14
  captioner = pipeline(task="image-to-text",
15
  model=CAPTION_MODELS['blip-base'],
16
  max_new_tokens=30,
17
+ device_map="cpu", use_fast=True
18
  )
19
 
20
  # Simple caption creation