Spaces:
Runtime error
Runtime error
Commit
·
fc57202
1
Parent(s):
bca9f16
Update app.py
Browse files
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="
|
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
|