Commit ·
0ac4de9
1
Parent(s): 27fd697
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,7 +80,7 @@ def txt_to_html(text):
|
|
| 80 |
html_content += "</body></html>"
|
| 81 |
return html_content
|
| 82 |
|
| 83 |
-
@spaces.GPU(duration=
|
| 84 |
def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
|
| 85 |
|
| 86 |
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]. Output the modified text."
|
|
|
|
| 80 |
html_content += "</body></html>"
|
| 81 |
return html_content
|
| 82 |
|
| 83 |
+
@spaces.GPU(duration=90)
|
| 84 |
def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
|
| 85 |
|
| 86 |
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]. Output the modified text."
|