Commit ·
eddffcf
1
Parent(s): e5f530a
Update app.py
Browse files
app.py
CHANGED
|
@@ -160,7 +160,7 @@ def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
|
|
| 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 =
|
| 164 |
messages=[
|
| 165 |
{"role": "assistant", "content": prompt},
|
| 166 |
{
|
|
|
|
| 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},
|
| 166 |
{
|