Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ def replace_encoding(tokens):
|
|
| 69 |
.replace('Ãļ', 'ý')
|
| 70 |
for token in tokens[1:-1]]
|
| 71 |
|
| 72 |
-
def predict(text):
|
| 73 |
explanations_formality = [bench.explain(text, target=0)]
|
| 74 |
explanations_sentiment = [bench.explain(text, target=1)]
|
| 75 |
explanations_politeness = [bench.explain(text, target=2)]
|
|
|
|
| 69 |
.replace('Ãļ', 'ý')
|
| 70 |
for token in tokens[1:-1]]
|
| 71 |
|
| 72 |
+
def predict(text, bench):
|
| 73 |
explanations_formality = [bench.explain(text, target=0)]
|
| 74 |
explanations_sentiment = [bench.explain(text, target=1)]
|
| 75 |
explanations_politeness = [bench.explain(text, target=2)]
|