Spaces:
Runtime error
Runtime error
chats-bug
commited on
Commit
·
7f9b1d3
1
Parent(s):
dc53ac5
Added examples
Browse files- .gitattributes +1 -0
- Image1.png +3 -0
- Image2.png +3 -0
- Image3.png +3 -0
- app.py +1 -4
.gitattributes
CHANGED
|
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
Image1.png
ADDED
|
Git LFS Details
|
Image2.png
ADDED
|
Git LFS Details
|
Image3.png
ADDED
|
Git LFS Details
|
app.py
CHANGED
|
@@ -9,10 +9,7 @@ MODELS = {
|
|
| 9 |
"Blip Base": BlipBaseModel,
|
| 10 |
}
|
| 11 |
|
| 12 |
-
|
| 13 |
-
torch.hub.download_url_to_file("https://huggingface.co/datasets/chats-bug/test-image-caption-Listed/blob/main/Image2.png", "image2.png")
|
| 14 |
-
torch.hub.download_url_to_file("https://huggingface.co/datasets/chats-bug/test-image-caption-Listed/blob/main/Image3.png", "image3.png")
|
| 15 |
-
examples = [["image1.png"], ["image2.png"], ["image3.png"]]
|
| 16 |
|
| 17 |
def generate_captions(
|
| 18 |
image,
|
|
|
|
| 9 |
"Blip Base": BlipBaseModel,
|
| 10 |
}
|
| 11 |
|
| 12 |
+
examples = [["Image1.png"], ["Image2.png"], ["Image3.png"]]
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
def generate_captions(
|
| 15 |
image,
|