khizon commited on
Commit
1e40f75
1 Parent(s): 057ddf6

use test_sub.jsonl

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -36,7 +36,7 @@ def jsonl_to_df(file_path):
36
 
37
  @st.cache
38
  def load_test_df():
39
- file_path = os.path.join('data', 'nela_gt_2018_site_split', 'test.jsonl')
40
  test_df = jsonl_to_df(file_path)
41
  test_df = pd.get_dummies(test_df, columns = ['label'])
42
  return test_df
@@ -90,8 +90,6 @@ def correct_preds(preds, labels):
90
 
91
 
92
  if __name__ == '__main__':
93
- if not os.path.exists('data/nela_gt_2018_site_split/test.jsonl'):
94
- download_dataset()
95
  df = load_test_df()
96
  tokenizer, model = init_model()
97
 
 
36
 
37
  @st.cache
38
  def load_test_df():
39
+ file_path = os.path.join('test_sub.jsonl')
40
  test_df = jsonl_to_df(file_path)
41
  test_df = pd.get_dummies(test_df, columns = ['label'])
42
  return test_df
 
90
 
91
 
92
  if __name__ == '__main__':
 
 
93
  df = load_test_df()
94
  tokenizer, model = init_model()
95