snaramirez872 commited on
Commit
4fc0ae0
·
1 Parent(s): 0132c27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ testing_loader = DL(testSet, batch_size=VALID_BATCH_SIZE, shuffle=True)
96
  # To Strings for Use
97
  test_loader_strings = []
98
  for dat in testing_loader:
99
- test_loader_strings += [d['input_ids'].tolist() for d in dat]
100
 
101
  # model
102
  class DistilBERTClass(TNN.Module):
 
96
  # To Strings for Use
97
  test_loader_strings = []
98
  for dat in testing_loader:
99
+ test_loader_strings += [d['input_ids'].tolist() for d in dat if isinstance(d, dict) and 'input_ids' in d]
100
 
101
  # model
102
  class DistilBERTClass(TNN.Module):