rbiswasfc commited on
Commit
fa37128
·
1 Parent(s): 9fce71c
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -41,7 +41,8 @@ def get_stats():
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
  ]
@@ -211,6 +212,7 @@ async def get():
211
 
212
  @rt("/evaluate")
213
  async def post(decision: str, example: str):
 
214
  example_dict = json.loads(example)
215
 
216
  # Insert the evaluated example into the database
 
41
 
42
 
43
  def get_example(selected_type=None):
44
+ global evaluated_ids
45
+ print(f"completed: {evaluated_ids}")
46
  available_examples = [
47
  ex for ex in fact_dataset if ex["example_id"] not in evaluated_ids
48
  ]
 
212
 
213
  @rt("/evaluate")
214
  async def post(decision: str, example: str):
215
+ global evaluated_ids
216
  example_dict = json.loads(example)
217
 
218
  # Insert the evaluated example into the database