Commit ·
731de01
1
Parent(s): 56fb34c
Update app.py
Browse files79 unmodified lines808182838384858688 unmodified lines17517617717817817918079 unmodified lines html_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 outputs
@spaces.GPU(duration=120)def pdf_to_text(files, maxtokens=2048, temperature=0, top_probability=0.95): print('Control 0-----------------------------------') files=[files]#remove laterapp.py+1-2