Youssef Benhachem commited on
Commit
c8bcfeb
1 Parent(s): 6cf4216
Files changed (1) hide show
  1. KHATT.py +2 -1
KHATT.py CHANGED
@@ -88,7 +88,6 @@ class KHATT(datasets.GeneratorBasedBuilder):
88
  """Yields examples."""
89
  idx = 0
90
  for archive in archives:
91
- #import ipdb; ipdb.set_trace()
92
  for path, file in archive:
93
  # If we have an image
94
  if path.endswith(".tif"):
@@ -102,6 +101,8 @@ class KHATT(datasets.GeneratorBasedBuilder):
102
  text = ""
103
 
104
  elif path.endswith(".txt"):
 
 
105
  text = file.read()
106
 
107
  ex = {"image": {"path": path, "bytes": img_file.read()}, "text": text}
 
88
  """Yields examples."""
89
  idx = 0
90
  for archive in archives:
 
91
  for path, file in archive:
92
  # If we have an image
93
  if path.endswith(".tif"):
 
101
  text = ""
102
 
103
  elif path.endswith(".txt"):
104
+ import ipdb; ipdb.set_trace()
105
+
106
  text = file.read()
107
 
108
  ex = {"image": {"path": path, "bytes": img_file.read()}, "text": text}