intfloat commited on
Commit
cbb328b
·
verified ·
1 Parent(s): e990ec5

Update custom_st.py

Browse files
Files changed (1) hide show
  1. custom_st.py +1 -1
custom_st.py CHANGED
@@ -69,7 +69,7 @@ class MultiModalTransformer(BaseTransformer):
69
  raise ValueError(f"Unknown image type {type(img)}")
70
  if "text" in item:
71
  if text:
72
- text += "<|begin_of_text|> "
73
  text += item["text"].lstrip()
74
 
75
  return text, img
 
69
  raise ValueError(f"Unknown image type {type(img)}")
70
  if "text" in item:
71
  if text:
72
+ text += "<|begin_of_text|>"
73
  text += item["text"].lstrip()
74
 
75
  return text, img