AbeerTrial commited on
Commit
669ec41
·
1 Parent(s): d0a34c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('C:\\SOAPWriter\\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,6 +203,6 @@ interface = Interface(
203
  ],
204
 
205
  )
206
- index = construct_index('C:\\\\SOAPWriter\\Docs')
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