jozzy commited on
Commit
a80c8a2
·
1 Parent(s): 12045d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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; 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
 
 
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'<div style="background-color: yellow; display: inline-block; word-wrap: break-word;">{prompt}</div>'
136
  Title2 = '<h2 style="background-color: #ADD8E6;"><b>Context Found: </b></h2>'
137
+ context = 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'<div style="background-color: #90EE90; display: inline-block; word-wrap: break-word;">{system_message["content"]}</div>'
141
 
142
 
143