Spaces:
Sleeping
Sleeping
srijaydeshpande
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def deidentify_doc(pdftext="", maxtokens=600, temperature=1.2, top_probability=0
|
|
84 |
print(output)
|
85 |
print('-------------------------------------------------------')
|
86 |
|
87 |
-
prompt = "Perform the following actions on given text: 1. Replace NHS number and Case note number and Date of Birth with term [redacted] 2.
|
88 |
output = model.create_chat_completion(
|
89 |
messages=[
|
90 |
{"role": "assistant", "content": prompt},
|
|
|
84 |
print(output)
|
85 |
print('-------------------------------------------------------')
|
86 |
|
87 |
+
prompt = "Perform the following actions on given text: 1. Replace NHS number and Case note number and Date of Birth with term [redacted] 2. Replace only the CALENDAR DATES of format 'day/month/year' with term [redacted] 3. DO NOT REPLACE ANY MEDICAL MEASUREMENTS"
|
88 |
output = model.create_chat_completion(
|
89 |
messages=[
|
90 |
{"role": "assistant", "content": prompt},
|