bugfix display
Browse files
app.py
CHANGED
@@ -171,7 +171,7 @@ async def chat(query,history,audience,sources,reports):
|
|
171 |
if not hasattr(history[-1], 'metadata') or history[-1].metadata["title"] != event_description: # if a new step begins
|
172 |
history.append(ChatMessage(role="assistant", content = "", metadata={'title' :event_description}))
|
173 |
|
174 |
-
elif event["name"] != "transform_query" and event["event"] == "on_chat_model_stream" and node in ["answer_rag", "answer_search"]:# if streaming answer
|
175 |
if start_streaming == False:
|
176 |
start_streaming = True
|
177 |
history.append(ChatMessage(role="assistant", content = ""))
|
|
|
171 |
if not hasattr(history[-1], 'metadata') or history[-1].metadata["title"] != event_description: # if a new step begins
|
172 |
history.append(ChatMessage(role="assistant", content = "", metadata={'title' :event_description}))
|
173 |
|
174 |
+
elif event["name"] != "transform_query" and event["event"] == "on_chat_model_stream" and node in ["answer_rag", "answer_search","answer_chitchat"]:# if streaming answer
|
175 |
if start_streaming == False:
|
176 |
start_streaming = True
|
177 |
history.append(ChatMessage(role="assistant", content = ""))
|
style.css
CHANGED
@@ -218,14 +218,19 @@ label.selected{
|
|
218 |
|
219 |
div#chatbot-row{
|
220 |
height:calc(100vh - 90px) !important;
|
|
|
|
|
221 |
}
|
222 |
|
223 |
div#chatbot{
|
224 |
height:calc(100vh - 170px) !important;
|
|
|
|
|
225 |
}
|
226 |
|
227 |
.max-height{
|
228 |
height:calc(100vh - 90px) !important;
|
|
|
229 |
overflow-y: auto;
|
230 |
}
|
231 |
|
|
|
218 |
|
219 |
div#chatbot-row{
|
220 |
height:calc(100vh - 90px) !important;
|
221 |
+
max-height:calc(100vh - 90px) !important;
|
222 |
+
|
223 |
}
|
224 |
|
225 |
div#chatbot{
|
226 |
height:calc(100vh - 170px) !important;
|
227 |
+
max-height:calc(100vh - 90px) !important;
|
228 |
+
|
229 |
}
|
230 |
|
231 |
.max-height{
|
232 |
height:calc(100vh - 90px) !important;
|
233 |
+
max-height:calc(100vh - 90px) !important;
|
234 |
overflow-y: auto;
|
235 |
}
|
236 |
|