Madhuri123 commited on
Commit
e561674
·
verified ·
1 Parent(s): 49786bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def initialize_pipeline():
13
  return pipeline(
14
  "image-text-to-text",
15
  model=model_id,
16
- use_auth_token=HF_TOKEN
17
  )
18
 
19
  # Preprocess image function
 
13
  return pipeline(
14
  "image-text-to-text",
15
  model=model_id,
16
+ model_kwargs={"torch_dtype": torch.bfloat16, "use_auth_token": HF_TOKEN}
17
  )
18
 
19
  # Preprocess image function