Gagan Bhatia commited on
Commit
5686d0a
·
1 Parent(s): 15505de

Update model.py

Browse files
Files changed (1) hide show
  1. src/models/model.py +4 -0
src/models/model.py CHANGED
@@ -47,3 +47,7 @@ class DataModule(Dataset):
47
  return len(self.data)
48
 
49
  def __getitem__(self, index: int):
 
 
 
 
 
47
  return len(self.data)
48
 
49
  def __getitem__(self, index: int):
50
+ data_row = self.data.iloc[index]
51
+
52
+ input_encoding = self.tokenizer(
53
+ data_row["input_text"],