ChandraP12330 commited on
Commit
5853ee7
·
verified ·
1 Parent(s): 2c2f81e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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")