Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|