Spaces:
Runtime error
Runtime error
Commit
·
3c2b1e2
1
Parent(s):
82a1932
output changes
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def get_result(text):
|
|
44 |
try:
|
45 |
response_icd = GPT_answer(prompt_icd)
|
46 |
response_dia = GPT_answer(prompt_dia)
|
47 |
-
answer = 'ICD-10
|
48 |
return answer
|
49 |
except openai.error.InvalidRequestError as e:
|
50 |
# Handle the InvalidRequestError
|
|
|
44 |
try:
|
45 |
response_icd = GPT_answer(prompt_icd)
|
46 |
response_dia = GPT_answer(prompt_dia)
|
47 |
+
answer = 'ICD-10 CODES:\n'+re.sub('\n', '', response_icd)+'\nFound DIAGNOSES:\n'+re.sub('\n', '', response_dia)
|
48 |
return answer
|
49 |
except openai.error.InvalidRequestError as e:
|
50 |
# Handle the InvalidRequestError
|