Spaces:
Runtime error
Runtime error
Hugo Pitorro
commited on
Commit
·
770184a
1
Parent(s):
ca5b7fd
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ def rank_candidate_text(sentences):
|
|
| 72 |
def full_pipeline(source, simpl_model, simpl_tok, tokens, lexical=False):
|
| 73 |
|
| 74 |
modified, complex_words = id_replace_complex(
|
| 75 |
-
source, threshold=0.2) if lexical else source, None
|
| 76 |
|
| 77 |
print(modified)
|
| 78 |
cands = generate_candidate_text(tokens+modified, simpl_model, simpl_tok)
|
|
|
|
| 72 |
def full_pipeline(source, simpl_model, simpl_tok, tokens, lexical=False):
|
| 73 |
|
| 74 |
modified, complex_words = id_replace_complex(
|
| 75 |
+
source, threshold=0.2) if lexical else source, None
|
| 76 |
|
| 77 |
print(modified)
|
| 78 |
cands = generate_candidate_text(tokens+modified, simpl_model, simpl_tok)
|