srijaydeshpande commited on
Commit
731de01
·
1 Parent(s): 56fb34c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -80,7 +80,7 @@ def txt_to_html(text):
80
  html_content += "</body></html>"
81
  return html_content
82
 
83
-
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
  print('Control 0.5 -----------------------------------')
@@ -175,7 +175,6 @@ def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
175
 
176
  # return outputs
177
 
178
- @spaces.GPU(duration=120)
179
  def pdf_to_text(files, maxtokens=2048, temperature=0, top_probability=0.95):
180
  print('Control 0-----------------------------------')
181
  files=[files]#remove later
 
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
  print('Control 0.5 -----------------------------------')
 
175
 
176
  # return outputs
177
 
 
178
  def pdf_to_text(files, maxtokens=2048, temperature=0, top_probability=0.95):
179
  print('Control 0-----------------------------------')
180
  files=[files]#remove later