Spaces:
Runtime error
Runtime error
Commit
·
669ec41
1
Parent(s):
d0a34c9
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,7 @@ def chatbot(input_text, input_voice, transcription_service, patient_name=None):
|
|
151 |
soap_response = response_index.response
|
152 |
|
153 |
patient_name = soap_response.split(' ')[1] if 'Subjective:' in soap_response else 'General'
|
154 |
-
patient_file_path = os.path.join('
|
155 |
|
156 |
if all(keyword in soap_response for keyword in ["Subjective:", "Objective:", "Assessment:", "Plan:"]):
|
157 |
s_index = soap_response.find('Subjective:')
|
@@ -203,6 +203,6 @@ interface = Interface(
|
|
203 |
],
|
204 |
|
205 |
)
|
206 |
-
index = construct_index('
|
207 |
interface.launch()
|
208 |
|
|
|
151 |
soap_response = response_index.response
|
152 |
|
153 |
patient_name = soap_response.split(' ')[1] if 'Subjective:' in soap_response else 'General'
|
154 |
+
patient_file_path = os.path.join('/home/user/app/Docs', f"{patient_name}.txt")
|
155 |
|
156 |
if all(keyword in soap_response for keyword in ["Subjective:", "Objective:", "Assessment:", "Plan:"]):
|
157 |
s_index = soap_response.find('Subjective:')
|
|
|
203 |
],
|
204 |
|
205 |
)
|
206 |
+
index = construct_index('/home/user/app/Docs')
|
207 |
interface.launch()
|
208 |
|