Spaces:
Sleeping
Sleeping
Update predictors.py
Browse files- predictors.py +7 -6
predictors.py
CHANGED
@@ -97,12 +97,13 @@ def correct_text(text: str, bias_checker, bias_corrector, separator: str = " ")
|
|
97 |
return corrected_text, corrections
|
98 |
|
99 |
def update(text: str):
|
100 |
-
text = clean(text, lower=False)
|
101 |
-
corrected_text, corrections = correct_text(text, bias_checker, bias_corrector)
|
102 |
-
corrections_display = "".join([f"{corr}" for orig, corr in corrections])
|
103 |
-
if corrections_display == "":
|
104 |
-
|
105 |
-
return corrections_display
|
|
|
106 |
|
107 |
def update_main(text: str):
|
108 |
# text = clean(text, lower=False)
|
|
|
97 |
return corrected_text, corrections
|
98 |
|
99 |
def update(text: str):
|
100 |
+
# text = clean(text, lower=False)
|
101 |
+
# corrected_text, corrections = correct_text(text, bias_checker, bias_corrector)
|
102 |
+
# corrections_display = "".join([f"{corr}" for orig, corr in corrections])
|
103 |
+
# if corrections_display == "":
|
104 |
+
# corrections_display = text
|
105 |
+
# return corrections_display
|
106 |
+
return "Unavailable"
|
107 |
|
108 |
def update_main(text: str):
|
109 |
# text = clean(text, lower=False)
|