ninjals commited on
Commit
77f345f
·
verified ·
1 Parent(s): a665c45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ print(f"[INFO] Loading Original Model")
16
  original_pipeline = pipeline(
17
  "image-text-to-text",
18
  model=BASE_MODEL_ID,
19
- dtype=DTYPE,
20
  device_map="auto",
21
  )
22
 
@@ -25,7 +25,7 @@ print(f"[INFO] Loading Fine-tuned Model")
25
  ft_pipe = pipeline(
26
  "image-text-to-text",
27
  model=FINE_TUNED_MODEL_ID,
28
- dtype=DTYPE,
29
  device_map="auto",
30
  )
31
 
 
16
  original_pipeline = pipeline(
17
  "image-text-to-text",
18
  model=BASE_MODEL_ID,
19
+ torch_dtype=DTYPE,
20
  device_map="auto",
21
  )
22
 
 
25
  ft_pipe = pipeline(
26
  "image-text-to-text",
27
  model=FINE_TUNED_MODEL_ID,
28
+ torch_dtype=DTYPE,
29
  device_map="auto",
30
  )
31