Update app.py
Browse files
app.py
CHANGED
@@ -184,14 +184,9 @@ if user_query is not None and user_query != "":
|
|
184 |
with st.chat_message("Human"):
|
185 |
st.markdown(user_query)
|
186 |
|
187 |
-
|
188 |
-
# Display the table in the sidebar
|
189 |
-
st.sidebar.write("### Knowledge Base Results")
|
190 |
-
st.sidebar.dataframe(df) # Adjust height as needed
|
191 |
-
else:
|
192 |
-
st.sidebar.write("No relevant knowledge base results found.")
|
193 |
|
194 |
with st.chat_message("AI"):
|
|
|
195 |
data = ChatRequestClient(
|
196 |
user_id=user_id,
|
197 |
user_input=user_input,
|
@@ -205,8 +200,7 @@ if user_query is not None and user_query != "":
|
|
205 |
userMessage2=userMessage2,
|
206 |
llm2=llm2,
|
207 |
tokens2=tokens2,
|
208 |
-
temperature2=temp2
|
209 |
-
)
|
210 |
response = call_chat_api(data)
|
211 |
response = st.write_stream(call_chat_api(data))
|
212 |
st.session_state.chat_history.append(AIMessage(content=response))
|
|
|
184 |
with st.chat_message("Human"):
|
185 |
st.markdown(user_query)
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
|
188 |
with st.chat_message("AI"):
|
189 |
+
|
190 |
data = ChatRequestClient(
|
191 |
user_id=user_id,
|
192 |
user_input=user_input,
|
|
|
200 |
userMessage2=userMessage2,
|
201 |
llm2=llm2,
|
202 |
tokens2=tokens2,
|
203 |
+
temperature2=temp2)
|
|
|
204 |
response = call_chat_api(data)
|
205 |
response = st.write_stream(call_chat_api(data))
|
206 |
st.session_state.chat_history.append(AIMessage(content=response))
|