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