Commit ·
79720d4
1
Parent(s): e161d8b
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,7 +123,7 @@ def pdf_to_text(file, maxtokens=600, temperature=1.2, top_probability=0.95):
|
|
| 123 |
if(file):
|
| 124 |
page2content = process_document(file, page_ids=[0])
|
| 125 |
pdftext = page2content[1]
|
| 126 |
-
display_text = deidentify_doc(pdftext)
|
| 127 |
html = txt_to_html(display_text)
|
| 128 |
with open('out.html', "w", encoding="utf-8") as file:
|
| 129 |
file.write(html)
|
|
|
|
| 123 |
if(file):
|
| 124 |
page2content = process_document(file, page_ids=[0])
|
| 125 |
pdftext = page2content[1]
|
| 126 |
+
display_text = deidentify_doc(pdftext, maxtokens, temperature, top_probability)
|
| 127 |
html = txt_to_html(display_text)
|
| 128 |
with open('out.html', "w", encoding="utf-8") as file:
|
| 129 |
file.write(html)
|