Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ from transformers import pipeline
|
|
| 3 |
from PIL import Image
|
| 4 |
|
| 5 |
# --- Model Setup ---
|
| 6 |
-
#
|
| 7 |
-
MODEL_NAME = "
|
| 8 |
|
| 9 |
# Initialize the image-to-text pipeline
|
| 10 |
captioner = pipeline(
|
|
|
|
| 3 |
from PIL import Image
|
| 4 |
|
| 5 |
# --- Model Setup ---
|
| 6 |
+
# Using an open, unrestricted image-to-text model
|
| 7 |
+
MODEL_NAME = "microsoft/git-large-coco"
|
| 8 |
|
| 9 |
# Initialize the image-to-text pipeline
|
| 10 |
captioner = pipeline(
|