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

deleting , clean_up_tokenization_spaces parameter and setting the CPU runtime

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=False)
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")
5
 
6
  def launch(input):
7
  out = pipe(input)