Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
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 |
|