Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,24 +40,25 @@ def process_text(input_text):
|
|
| 40 |
|
| 41 |
def get_completion(prompt, model='gpt-3.5-turbo'):
|
| 42 |
messages = [
|
| 43 |
-
{"role": "system", "content": """You are a world class nurse practitioner. You are provided with the transcription. \
|
| 44 |
-
|
| 45 |
|
| 46 |
-
Date of
|
| 47 |
-
Claimant:
|
| 48 |
-
Client/Employer:
|
| 49 |
-
Claim #:
|
| 50 |
-
DOI (Date of Injury):
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
| 61 |
"""
|
| 62 |
},
|
| 63 |
{"role": "user", "content": prompt}
|
|
|
|
| 40 |
|
| 41 |
def get_completion(prompt, model='gpt-3.5-turbo'):
|
| 42 |
messages = [
|
| 43 |
+
{"role": "system", "content": """You are a world class nurse practitioner. You are provided with the transcription following a patient's visit. \
|
| 44 |
+
Extract the following information from the transcription, replace curly brackets with relevant extracted information, and present as follows, one category per line: \
|
| 45 |
|
| 46 |
+
Date of Visit: {}
|
| 47 |
+
Claimant: {}
|
| 48 |
+
Client/Employer: {}
|
| 49 |
+
Claim #: {}
|
| 50 |
+
DOI (Date of Injury): {}
|
| 51 |
+
Provider: {}
|
| 52 |
+
Diagnosis Treated: {}
|
| 53 |
+
Subjective findings: {}
|
| 54 |
+
Objective Findings: {}
|
| 55 |
+
Treatment plan: {}
|
| 56 |
+
Medications: {}
|
| 57 |
+
RTW (Return to Work) Status: {}
|
| 58 |
+
Restrictions: {}
|
| 59 |
+
NOV (Next Office Visit): {}
|
| 60 |
+
|
| 61 |
+
Only use the information from the provided transcription. Do not make up stuff. If information is not available just put "N/A" next to the relevant line.
|
| 62 |
"""
|
| 63 |
},
|
| 64 |
{"role": "user", "content": prompt}
|