srijaydeshpande commited on
Commit
5958396
·
verified ·
1 Parent(s): f33ef29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def txt_to_html(text):
81
  def deidentify_doc(llm, pdftext, maxtokens, temperature, top_probability):
82
 
83
  #### Remove Dates ###
84
- prompt = "In the following text only the calendar dates with term [date]. Example: if input is 'Date of birth: 15/5/1959 calculated BP (Systolic 158.00 mm, Diastolic 124.95 mm)' output should be 'Date of birth: [date] calculated BP (Systolic 158.00 mm, Diastolic 124.95 mm)'"
85
  output = llm.create_chat_completion(
86
  messages=[
87
  {"role": "assistant", "content": prompt},
 
81
  def deidentify_doc(llm, pdftext, maxtokens, temperature, top_probability):
82
 
83
  #### Remove Dates ###
84
+ prompt = "In the following text replace only the calendar dates with term [date]. Example: if input is 'Date of birth: 15/5/1959 calculated BP (Systolic 158.00 mm, Diastolic 124.95 mm)' output should be 'Date of birth: [date] calculated BP (Systolic 158.00 mm, Diastolic 124.95 mm)'"
85
  output = llm.create_chat_completion(
86
  messages=[
87
  {"role": "assistant", "content": prompt},