Commit ·
731de01
1
Parent(s): 56fb34c
Update app.py
Browse files79 unmodified lines8081828384858688 unmodified lines17517617717817918018179 unmodified lineshtml_content += "</body></html>"return html_contentdef deidentify_doc(pdftext, maxtokens, temperature, top_probability):prompt = "In the following text replace any person name and any address with term [redacted], replace any Date of Birth and NHS number with term [redacted]"print('Control 0.5 -----------------------------------')88 unmodified lines# return outputs@spaces.GPU(duration=120)def pdf_to_text(files, maxtokens=2048, temperature=0, top_probability=0.95):print('Control 0-----------------------------------')files=[files]#remove later79 unmodified lines8081828384858688 unmodified lines17517617717817918079 unmodified lineshtml_content += "</body></html>"return html_content@spaces.GPU(duration=120)def deidentify_doc(pdftext, maxtokens, temperature, top_probability):prompt = "In the following text replace any person name and any address with term [redacted], replace any Date of Birth and NHS number with term [redacted]"print('Control 0.5 -----------------------------------')88 unmodified lines# return outputsdef pdf_to_text(files, maxtokens=2048, temperature=0, top_probability=0.95):print('Control 0-----------------------------------')files=[files]#remove later
app.py+1-2