ruslanmv commited on
Commit
62e7eb5
·
verified ·
1 Parent(s): 0056b34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,7 +34,8 @@ def askme(symptoms, question):
34
  # Extract only the assistant's response
35
  #assistant_response = response_text.split("<|im_start|>assistant")[1].strip().replace('<|im_end|>', '')
36
  # Extract only the assistant's response
37
- return response_text
 
38
 
39
 
40
 
 
34
  # Extract only the assistant's response
35
  #assistant_response = response_text.split("<|im_start|>assistant")[1].strip().replace('<|im_end|>', '')
36
  # Extract only the assistant's response
37
+ assistant_response =response_text.split("assistant")[1].strip().split("user")[0].strip()
38
+ return assistant_response
39
 
40
 
41