Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ if uploaded_file is not None:
|
|
| 112 |
x=[pipe1(sentence)]
|
| 113 |
m = combine_words(x[0])
|
| 114 |
for j in m:
|
| 115 |
-
if(j['entity']!='none'):
|
| 116 |
final.append(j['word'])
|
| 117 |
for i in final:
|
| 118 |
redact_text(pg,i)
|
|
|
|
| 112 |
x=[pipe1(sentence)]
|
| 113 |
m = combine_words(x[0])
|
| 114 |
for j in m:
|
| 115 |
+
if(j['entity']!='none' and len(j['word'])>1 and j['word']!=', '):
|
| 116 |
final.append(j['word'])
|
| 117 |
for i in final:
|
| 118 |
redact_text(pg,i)
|