Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,9 @@ import time
|
|
| 10 |
print("Loading MedGemma model...")
|
| 11 |
pipe = pipeline(
|
| 12 |
"image-text-to-text",
|
| 13 |
-
model="
|
| 14 |
torch_dtype=torch.bfloat16,
|
| 15 |
-
|
| 16 |
-
device_map="auto",
|
| 17 |
)
|
| 18 |
print("Model loaded successfully!")
|
| 19 |
|
|
|
|
| 10 |
print("Loading MedGemma model...")
|
| 11 |
pipe = pipeline(
|
| 12 |
"image-text-to-text",
|
| 13 |
+
model="google/medgemma-4b-it",
|
| 14 |
torch_dtype=torch.bfloat16,
|
| 15 |
+
device="cuda" if torch.cuda.is_available() else "cpu",
|
|
|
|
| 16 |
)
|
| 17 |
print("Model loaded successfully!")
|
| 18 |
|