dolphinium commited on
Commit
4545740
·
verified ·
1 Parent(s): c643bd8

set clean_up_tokenization_spaces to False

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base", clean_up_tokenization_spaces=True)
5
 
6
  def launch(input):
7
  out = pipe(input)
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base", clean_up_tokenization_spaces=False)
5
 
6
  def launch(input):
7
  out = pipe(input)