srijaydeshpande commited on
Commit
2bac082
·
1 Parent(s): eddffcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -83,7 +83,7 @@ def txt_to_html(text):
83
  @spaces.GPU(duration=120)
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]"
87
 
88
  # prompt = """
89
  # Perform the following actions on given report:
@@ -159,7 +159,7 @@ def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
159
  )
160
  output = output['choices'][0]['message']['content']
161
 
162
- prompt = "Perform the following actions on given text: 1. Replace any person age with term [redacted] 2. DO NOT REPLACE ANY MEDICAL MEASUREMENTS 3. Replace only the CALENDAR DATES of format 'day/month/year' with term [redacted]"
163
  output = llm.create_chat_completion(
164
  messages=[
165
  {"role": "assistant", "content": prompt},
 
83
  @spaces.GPU(duration=120)
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."
87
 
88
  # prompt = """
89
  # Perform the following actions on given report:
 
159
  )
160
  output = output['choices'][0]['message']['content']
161
 
162
+ prompt = "Perform the following actions on given text: 1. Replace any person age with term [redacted] 2. DO NOT REPLACE ANY MEDICAL MEASUREMENTS 3. Replace only the CALENDAR DATES of format 'day/month/year' with term [redacted]. Output the modified text."
163
  output = llm.create_chat_completion(
164
  messages=[
165
  {"role": "assistant", "content": prompt},