Spaces:
Sleeping
Sleeping
app
Browse files- app.py +2 -1
- config.ini +5 -0
app.py
CHANGED
@@ -26,7 +26,7 @@ if examples not in db.t:
|
|
26 |
pk="id",
|
27 |
)
|
28 |
|
29 |
-
evaluated_ids = set(row["example_id"] for row in examples.rows)
|
30 |
question_types = sorted(set(ex["question_type"] for ex in fact_dataset))
|
31 |
|
32 |
|
@@ -41,6 +41,7 @@ def get_stats():
|
|
41 |
|
42 |
|
43 |
def get_example(selected_type=None):
|
|
|
44 |
available_examples = [
|
45 |
ex for ex in fact_dataset if ex["example_id"] not in evaluated_ids
|
46 |
]
|
|
|
26 |
pk="id",
|
27 |
)
|
28 |
|
29 |
+
evaluated_ids = set([row["example_id"] for row in examples.rows])
|
30 |
question_types = sorted(set(ex["question_type"] for ex in fact_dataset))
|
31 |
|
32 |
|
|
|
41 |
|
42 |
|
43 |
def get_example(selected_type=None):
|
44 |
+
print(evaluated_ids)
|
45 |
available_examples = [
|
46 |
ex for ex in fact_dataset if ex["example_id"] not in evaluated_ids
|
47 |
]
|
config.ini
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[DEFAULT]
|
2 |
+
dataset_id = space-backup
|
3 |
+
db_dir = data
|
4 |
+
private_backup = True
|
5 |
+
|