Spaces:
Runtime error
Runtime error
change redacting char
Browse files
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 = '
|
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'])
|