khizon commited on
Commit
606c75b
·
1 Parent(s): b4a581e

change redacting char

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,8 +116,8 @@ if __name__ == '__main__':
116
  # sample['content'] = sample['content'][:300]
117
  temp = []
118
  for idx, word in enumerate(sample['content'].split()):
119
- if idx%5 == 0:
120
- word = '*'*len(word)
121
  temp.append(word)
122
  sample['content'] = ' '.join(temp)
123
  st.markdown(sample['content'])
 
116
  # sample['content'] = sample['content'][:300]
117
  temp = []
118
  for idx, word in enumerate(sample['content'].split()):
119
+ if (idx%5 == 0) and idx > 0:
120
+ word = ''*len(word)
121
  temp.append(word)
122
  sample['content'] = ' '.join(temp)
123
  st.markdown(sample['content'])