edithram23 commited on
Commit
627170a
1 Parent(s): fb16cd6

Update app.py

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