dvilasuero HF staff commited on
Commit
8873713
β€’
1 Parent(s): 37d7ea6

Fix status mapping

Browse files

We were keeping the flag in the metadata so it's not a big deal as we can use that to get the correct vs incorrect predictions, but this fixes the logic for assigning the validated status

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def create_record(input_text, feedback):
23
  # define the record status based on feedback
24
  # default means it needs to be reviewed --> "Incorrect" or "Ambiguous"
25
  # validated means it's correct and has been checked --> "Correct"
26
- status = "Validated" if feedback == "Correct" else "Default"
27
 
28
  # Making the prediction
29
  predictions = nlp(input_text, aggregation_strategy="first")
 
23
  # define the record status based on feedback
24
  # default means it needs to be reviewed --> "Incorrect" or "Ambiguous"
25
  # validated means it's correct and has been checked --> "Correct"
26
+ status = "Validated" if feedback == "Doğru" else "Default"
27
 
28
  # Making the prediction
29
  predictions = nlp(input_text, aggregation_strategy="first")