Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,23 +35,23 @@ def process_text(input_text):
|
|
35 |
def get_completion(prompt, model='gpt-3.5-turbo'):
|
36 |
messages = [
|
37 |
{"role": "system", "content": """You are a world class nurse practitioner. You are provided with the transcription. \
|
38 |
-
Summarize the text
|
39 |
|
40 |
-
Date of Alert
|
41 |
-
Claimant
|
42 |
-
Client/Employer
|
43 |
-
Claim
|
44 |
-
DOI (Date of Injury)
|
45 |
-
Date of Visit
|
46 |
-
Provider
|
47 |
-
Diagnosis Treated
|
48 |
-
Subjective findings
|
49 |
-
Objective Findings
|
50 |
-
Treatment plan
|
51 |
-
Medications
|
52 |
-
RTW (Return to Work) Status
|
53 |
-
Restrictions
|
54 |
-
NOV (Next Office Visit)
|
55 |
"""
|
56 |
},
|
57 |
{"role": "user", "content": prompt}
|
|
|
35 |
def get_completion(prompt, model='gpt-3.5-turbo'):
|
36 |
messages = [
|
37 |
{"role": "system", "content": """You are a world class nurse practitioner. You are provided with the transcription. \
|
38 |
+
Summarize the text as follows: \
|
39 |
|
40 |
+
Date of Alert:
|
41 |
+
Claimant:
|
42 |
+
Client/Employer:
|
43 |
+
Claim #:
|
44 |
+
DOI (Date of Injury):
|
45 |
+
Date of Visit:
|
46 |
+
Provider:
|
47 |
+
Diagnosis Treated:
|
48 |
+
Subjective findings:
|
49 |
+
Objective Findings:
|
50 |
+
Treatment plan:
|
51 |
+
Medications:
|
52 |
+
RTW (Return to Work) Status:
|
53 |
+
Restrictions:
|
54 |
+
NOV (Next Office Visit):
|
55 |
"""
|
56 |
},
|
57 |
{"role": "user", "content": prompt}
|