Spaces:
Runtime error
Runtime error
use test_sub.jsonl
Browse files
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('
|
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 |
|