karalif commited on
Commit
b9f09fd
·
verified ·
1 Parent(s): 515f053

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)]