Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
from PIL import Image
|
|
|
|
|
4 |
|
5 |
# Create the caption pipeline
|
6 |
initial_caption = pipeline('image-to-text', model="Salesforce/blip-image-captioning-large")
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
from PIL import Image
|
4 |
+
import tensorflow
|
5 |
+
import torch
|
6 |
|
7 |
# Create the caption pipeline
|
8 |
initial_caption = pipeline('image-to-text', model="Salesforce/blip-image-captioning-large")
|