Fix: Define missing `input_text` variable to enable result formatting in example code
#11
by
anon-repair-bot
- opened
README.md
CHANGED
|
@@ -78,6 +78,10 @@ results = Detoxify('multilingual').predict(['example text','exemple de texte','t
|
|
| 78 |
|
| 79 |
# optional to display results nicely (will need to pip install pandas)
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
import pandas as pd
|
| 82 |
|
| 83 |
print(pd.DataFrame(results, index=input_text).round(5))
|
|
|
|
| 78 |
|
| 79 |
# optional to display results nicely (will need to pip install pandas)
|
| 80 |
|
| 81 |
+
input_text = ['example text', 'exemple de texte', 'texto de ejemplo',
|
| 82 |
+
'testo di esempio', 'texto de exemplo', 'örnek metin', 'пример текста']
|
| 83 |
+
results = Detoxify('multilingual').predict(input_text)
|
| 84 |
+
|
| 85 |
import pandas as pd
|
| 86 |
|
| 87 |
print(pd.DataFrame(results, index=input_text).round(5))
|