Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,8 +53,8 @@ def chat(instruction):
|
|
| 53 |
# print("🧠 Full output:", repr(response))
|
| 54 |
|
| 55 |
# Split and return the assistant's answer
|
| 56 |
-
if "###
|
| 57 |
-
return response.split("###
|
| 58 |
else:
|
| 59 |
return response.strip()
|
| 60 |
|
|
|
|
| 53 |
# print("🧠 Full output:", repr(response))
|
| 54 |
|
| 55 |
# Split and return the assistant's answer
|
| 56 |
+
if "### Answer:" in response:
|
| 57 |
+
return response.split("### Answer:")[-1].strip()
|
| 58 |
else:
|
| 59 |
return response.strip()
|
| 60 |
|