Spaces:
Runtime error
Runtime error
Commit
·
0d58a77
1
Parent(s):
30fc2e2
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ HF_TOKEN = os.getenv("HF_TOKEN")
|
|
12 |
def img2Text(url):
|
13 |
image_to_text = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
|
14 |
text = image_to_text(url)
|
|
|
15 |
print(text)
|
16 |
return text
|
17 |
img2Text(test-photo.png)
|
|
|
12 |
def img2Text(url):
|
13 |
image_to_text = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
|
14 |
text = image_to_text(url)
|
15 |
+
st.subheader(text)
|
16 |
print(text)
|
17 |
return text
|
18 |
img2Text(test-photo.png)
|