khizon commited on
Commit
b4a581e
·
1 Parent(s): 5ebbffe
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -115,8 +115,8 @@ if __name__ == '__main__':
115
  # if len(sample['content']) > 300:
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)
 
115
  # if len(sample['content']) > 300:
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)