Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
|
|
|
|
4 |
def image2text(url):
|
5 |
image_to_text_pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
|
6 |
text = image_to_text_pipe(url)[0]['generated_text']
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
print('I am alive!')
|
5 |
+
|
6 |
def image2text(url):
|
7 |
image_to_text_pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
|
8 |
text = image_to_text_pipe(url)[0]['generated_text']
|