Update app.py
Browse files
app.py
CHANGED
|
@@ -132,12 +132,12 @@ def talk2file(index_name, text):
|
|
| 132 |
# chats += msg['role'] + ": " + msg['content'] + "\n\n"
|
| 133 |
|
| 134 |
Title1 = '<h2 style="background-color: yellow;"><b>User Question: </b></h2>'
|
| 135 |
-
User_Question = f'<span style="background-color: yellow;">{prompt}</span>'
|
| 136 |
Title2 = '<h2 style="background-color: #ADD8E6;"><b>Context Found: </b></h2>'
|
| 137 |
context2html = markdown2.markdown(docs[0].page_content)
|
| 138 |
-
context = f'<span style="background-color: #ADD8E6;">{context2html}</span>'
|
| 139 |
Title3 = '<h2 style="background-color: #90EE90;"><b>Ansewr: </b></h2>'
|
| 140 |
-
answer = f'<span style="background-color: #90EE90;">{system_message["content"]}</span>'
|
| 141 |
|
| 142 |
|
| 143 |
|
|
|
|
| 132 |
# chats += msg['role'] + ": " + msg['content'] + "\n\n"
|
| 133 |
|
| 134 |
Title1 = '<h2 style="background-color: yellow;"><b>User Question: </b></h2>'
|
| 135 |
+
User_Question = f'<span style="background-color: yellow; display: inline-block; word-wrap: break-word;">{prompt}</span>'
|
| 136 |
Title2 = '<h2 style="background-color: #ADD8E6;"><b>Context Found: </b></h2>'
|
| 137 |
context2html = markdown2.markdown(docs[0].page_content)
|
| 138 |
+
context = f'<span style="background-color: #ADD8E6; display: inline-block; word-wrap: break-word;">{context2html}</span>'
|
| 139 |
Title3 = '<h2 style="background-color: #90EE90;"><b>Ansewr: </b></h2>'
|
| 140 |
+
answer = f'<span style="background-color: #90EE90; display: inline-block; word-wrap: break-word;">{system_message["content"]}</span>'
|
| 141 |
|
| 142 |
|
| 143 |
|