Spaces:
Runtime error
Runtime error
Commit ·
0e08015
1
Parent(s): fd7e2d9
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,6 +101,10 @@ def chat(input_text):
|
|
| 101 |
response = response.replace(base_prompt, "").strip()
|
| 102 |
if "### Conversation History ###" in response:
|
| 103 |
response = response.replace("### Conversation History ###", "").strip()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
# Add Rena's response to the conversation history
|
| 106 |
conversation_history.append(f"Rena: {response}")
|
|
@@ -116,7 +120,7 @@ def chat(input_text):
|
|
| 116 |
"That’s not a bug, it’s a feature in disguise! Let’s tame it.",
|
| 117 |
"Oops, something went wrong. But hey, at least it’s not my fault this time!",
|
| 118 |
"Ah, the sweet symphony of errors. Let’s orchestrate a fix, shall we?",
|
| 119 |
-
"Debugging is 90% frustration and 10% googling! —you’re doing great!"
|
| 120 |
]
|
| 121 |
|
| 122 |
# Add a witty remark if 'error' is mentioned
|
|
|
|
| 101 |
response = response.replace(base_prompt, "").strip()
|
| 102 |
if "### Conversation History ###" in response:
|
| 103 |
response = response.replace("### Conversation History ###", "").strip()
|
| 104 |
+
if "Rena:" in response:
|
| 105 |
+
response = response.replace("Rena:", "").strip()
|
| 106 |
+
if "Assitant:" in response:
|
| 107 |
+
response = response.replace(Assitant:", "").strip()
|
| 108 |
|
| 109 |
# Add Rena's response to the conversation history
|
| 110 |
conversation_history.append(f"Rena: {response}")
|
|
|
|
| 120 |
"That’s not a bug, it’s a feature in disguise! Let’s tame it.",
|
| 121 |
"Oops, something went wrong. But hey, at least it’s not my fault this time!",
|
| 122 |
"Ah, the sweet symphony of errors. Let’s orchestrate a fix, shall we?",
|
| 123 |
+
"Debugging is 90% frustration and 10% gaging! I mean googling! ... —you’re doing great!"
|
| 124 |
]
|
| 125 |
|
| 126 |
# Add a witty remark if 'error' is mentioned
|