Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -117,10 +117,14 @@ from huggingface_hub import login
|
|
117 |
hf_token = os.getenv("hf_token")
|
118 |
login(token=hf_token)
|
119 |
|
|
|
|
|
|
|
|
|
120 |
# Load the MedGemma pipeline
|
121 |
pipe = pipeline(
|
122 |
"image-text-to-text",
|
123 |
-
model=
|
124 |
torch_dtype=torch.bfloat16,
|
125 |
device="cuda" if torch.cuda.is_available() else "cpu",
|
126 |
)
|
|
|
117 |
hf_token = os.getenv("hf_token")
|
118 |
login(token=hf_token)
|
119 |
|
120 |
+
|
121 |
+
model_id = "google/gemma-3n-E4B-it-litert-preview"
|
122 |
+
# model_id = "google/medgemma-4b-it"
|
123 |
+
|
124 |
# Load the MedGemma pipeline
|
125 |
pipe = pipeline(
|
126 |
"image-text-to-text",
|
127 |
+
model=model_id,
|
128 |
torch_dtype=torch.bfloat16,
|
129 |
device="cuda" if torch.cuda.is_available() else "cpu",
|
130 |
)
|