Commit
·
271a194
1
Parent(s):
18dd836
output format
Browse files
app.py
CHANGED
@@ -45,7 +45,8 @@ def add_text(history, text):
|
|
45 |
|
46 |
def bot(history):
|
47 |
response = infer(history[-1][0], history)
|
48 |
-
|
|
|
49 |
history[-1][1] = formatted_response
|
50 |
return history
|
51 |
|
|
|
45 |
|
46 |
def bot(history):
|
47 |
response = infer(history[-1][0], history)
|
48 |
+
sentences = ' \n'.join(response.split('. '))
|
49 |
+
formatted_response = f"**Bot:**\n\n{sentences}"
|
50 |
history[-1][1] = formatted_response
|
51 |
return history
|
52 |
|