wasimsafdar commited on
Commit
f877e72
·
verified ·
1 Parent(s): a917498

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  from transformers import pipeline
4
 
5
  pipe = pipeline("image-to-text",
6
- model="./models/blip-image-captioning-base")
7
 
8
  def launch(input):
9
  out = pipe(input)
@@ -13,4 +13,4 @@ iface = gr.Interface(launch,
13
  inputs=gr.Image(type='pil'),
14
  outputs="text")
15
 
16
- iface.launch(share=True)
 
3
  from transformers import pipeline
4
 
5
  pipe = pipeline("image-to-text",
6
+ model="blip-image-captioning-base")
7
 
8
  def launch(input):
9
  out = pipe(input)
 
13
  inputs=gr.Image(type='pil'),
14
  outputs="text")
15
 
16
+ iface.launch()