Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import os
|
|
6 |
# function part
|
7 |
# img2text
|
8 |
def img2text(image_path):
|
9 |
-
image_to_text = pipeline("image-to-text", model="
|
10 |
text = image_to_text(image_path)[0]["generated_text"]
|
11 |
return text
|
12 |
|
|
|
6 |
# function part
|
7 |
# img2text
|
8 |
def img2text(image_path):
|
9 |
+
image_to_text = pipeline("image-to-text", model="sooh-j/blip-image-captioning-base")
|
10 |
text = image_to_text(image_path)[0]["generated_text"]
|
11 |
return text
|
12 |
|