Update app.py
Browse files
app.py
CHANGED
|
@@ -2,15 +2,6 @@
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import streamlit as st
|
| 4 |
|
| 5 |
-
# Use a pipeline as a high-level helper
|
| 6 |
-
from transformers import pipeline
|
| 7 |
-
|
| 8 |
-
pipe_caption = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
|
| 9 |
-
st.title('AI Storytelling for Kids')
|
| 10 |
-
|
| 11 |
-
uploaded_file = st.file_uploader('Choose an image...', type=['jpg','png','jpeg'])
|
| 12 |
-
image = Image.open(uploaded_file)
|
| 13 |
-
# Use function for the implementation
|
| 14 |
|
| 15 |
# function part
|
| 16 |
# img2text
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import streamlit as st
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
# function part
|
| 7 |
# img2text
|