Duy1332002 commited on
Commit
161144b
·
verified ·
1 Parent(s): 92075ab

Update instruct500k_vi.py

Browse files
Files changed (1) hide show
  1. instruct500k_vi.py +1 -2
instruct500k_vi.py CHANGED
@@ -132,7 +132,7 @@ class Instruck500k_Vi(datasets.GeneratorBasedBuilder):
132
 
133
  yield i, {
134
  "id": sample["id"],
135
- "video": self.__get_binary_data(image_path),
136
  "conversations": sample["conversations"],
137
  }
138
 
@@ -143,7 +143,6 @@ class Instruck500k_Vi(datasets.GeneratorBasedBuilder):
143
  :return: Binary data.
144
  """
145
  with open(path, "rb") as f:
146
- print(f.read())
147
  return f.read()
148
 
149
  def __get_text_data(self, path: str) -> str:
 
132
 
133
  yield i, {
134
  "id": sample["id"],
135
+ "image": self.__get_binary_data(image_path),
136
  "conversations": sample["conversations"],
137
  }
138
 
 
143
  :return: Binary data.
144
  """
145
  with open(path, "rb") as f:
 
146
  return f.read()
147
 
148
  def __get_text_data(self, path: str) -> str: