Spaces:
Runtime error
Runtime error
Commit
β’
c28d90a
1
Parent(s):
37d7ea6
Fix status mapping (#2)
Browse files- Fix status mapping (8873713e24eeb9d590e39b0b7af273a3fbb430fe)
Co-authored-by: Daniel Vila <dvilasuero@users.noreply.huggingface.co>
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 == "
|
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")
|