neha-ai-playground commited on
Commit
0d58a77
·
1 Parent(s): 30fc2e2

Update app.py

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