Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -190,11 +190,11 @@ if uploaded_file is not None:
|
|
190 |
words_out = [i for i in new if len(i)>2]
|
191 |
# print(words_out)
|
192 |
words_out=sorted(words_out, key=len,reverse=True)
|
193 |
-
|
194 |
print(words_out)
|
195 |
for i in words_out:
|
196 |
redact_text(pg,i)
|
197 |
-
st.text_area(
|
198 |
|
199 |
output_pdf = "output_redacted.pdf"
|
200 |
pdf_document.save(output_pdf)
|
|
|
190 |
words_out = [i for i in new if len(i)>2]
|
191 |
# print(words_out)
|
192 |
words_out=sorted(words_out, key=len,reverse=True)
|
193 |
+
redacted_text+=words_out
|
194 |
print(words_out)
|
195 |
for i in words_out:
|
196 |
redact_text(pg,i)
|
197 |
+
st.text_area(redacted_text)
|
198 |
|
199 |
output_pdf = "output_redacted.pdf"
|
200 |
pdf_document.save(output_pdf)
|