Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def chat(user_input, top_p, temperature, max_gen_len):
|
|
27 |
|
28 |
# remove the first phrase identical to user prompt
|
29 |
bot_response = bot_response[0][len(user_input):]
|
30 |
-
bot_response = bot_response.replace("\n", "<br>")
|
31 |
# trip the last phrase
|
32 |
try:
|
33 |
bot_response = bot_response[:bot_response.rfind(".")]
|
|
|
27 |
|
28 |
# remove the first phrase identical to user prompt
|
29 |
bot_response = bot_response[0][len(user_input):]
|
30 |
+
bot_response = bot_response.replace("\n", "<br><br>")
|
31 |
# trip the last phrase
|
32 |
try:
|
33 |
bot_response = bot_response[:bot_response.rfind(".")]
|