ninjals commited on
Commit
8ef3ae6
·
verified ·
1 Parent(s): 1fcac58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ original_pipeline = pipeline(
14
  "image-text-to-text",
15
  model=BASE_MODEL_ID,
16
  dtype=torch.float32,
17
- device_map="auto"
18
  )
19
 
20
  # Load fine-tuned model
@@ -23,7 +23,7 @@ ft_pipe = pipeline(
23
  "image-text-to-text",
24
  model=FINE_TUNED_MODEL_ID,
25
  dtype=torch.float32,
26
- device_map="auto"
27
  )
28
 
29
  def create_message(input_image):
 
14
  "image-text-to-text",
15
  model=BASE_MODEL_ID,
16
  dtype=torch.float32,
17
+ device_map="cpu"
18
  )
19
 
20
  # Load fine-tuned model
 
23
  "image-text-to-text",
24
  model=FINE_TUNED_MODEL_ID,
25
  dtype=torch.float32,
26
+ device_map="cpu"
27
  )
28
 
29
  def create_message(input_image):