Spaces:
Running
on
Zero
Running
on
Zero
srijaydeshpande
commited on
Update app.py
Browse files
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},
|