Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,9 @@ def askme(symptoms, question):
|
|
30 |
# Remove system messages and content
|
31 |
# Extract and return the generated text, removing the prompt
|
32 |
# Extract only the assistant's response
|
33 |
-
|
|
|
|
|
34 |
return answer
|
35 |
|
36 |
|
|
|
30 |
# Remove system messages and content
|
31 |
# Extract and return the generated text, removing the prompt
|
32 |
# Extract only the assistant's response
|
33 |
+
|
34 |
+
# Extract only the assistant's response
|
35 |
+
answer = response_text.split('<|im_start|>assistant')[1].split('<|im_end|>')[0].strip()
|
36 |
return answer
|
37 |
|
38 |
|