srijaydeshpande commited on
Commit
41142a1
·
1 Parent(s): 8747551

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=120)
84
  def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
85
  # 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]"
86
  prompt = "Perform the following actions on given report: 1. Replace any person names and person date of birth and person age and person gender with term [redacted] 2. Replace any person addresses with term [redacted] 3. Replace any person age with term [redacted] 4. DO NOT REPLACE ANY MEDICAL MEASUREMENTS 5. Replace only the CALENDAR DATES of format 'day/month/year' with term [redacted]"
 
80
  html_content += "</body></html>"
81
  return html_content
82
 
83
+ @spaces.GPU(duration=60)
84
  def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
85
  # 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]"
86
  prompt = "Perform the following actions on given report: 1. Replace any person names and person date of birth and person age and person gender with term [redacted] 2. Replace any person addresses with term [redacted] 3. Replace any person age with term [redacted] 4. DO NOT REPLACE ANY MEDICAL MEASUREMENTS 5. Replace only the CALENDAR DATES of format 'day/month/year' with term [redacted]"