Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,10 +18,10 @@ def load_model():
|
|
| 18 |
|
| 19 |
# Load the processor and model using the correct identifier
|
| 20 |
processor = AutoProcessor.from_pretrained(
|
| 21 |
-
"google/paligemma2-
|
| 22 |
)
|
| 23 |
model = AutoModelForImageTextToText.from_pretrained(
|
| 24 |
-
"google/paligemma2-
|
| 25 |
)
|
| 26 |
|
| 27 |
return processor, model
|
|
|
|
| 18 |
|
| 19 |
# Load the processor and model using the correct identifier
|
| 20 |
processor = AutoProcessor.from_pretrained(
|
| 21 |
+
"google/paligemma2-28b-pt-896", use_auth_token=token
|
| 22 |
)
|
| 23 |
model = AutoModelForImageTextToText.from_pretrained(
|
| 24 |
+
"google/paligemma2-28b-pt-896", use_auth_token=token
|
| 25 |
)
|
| 26 |
|
| 27 |
return processor, model
|