Upload app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def get_response(user_query):
|
|
103 |
|
104 |
# App config
|
105 |
st.set_page_config(page_title="GOAHEAD.VN", page_icon="π")
|
106 |
-
st.title("
|
107 |
|
108 |
# Initialize session state
|
109 |
if "chat_history" not in st.session_state:
|
@@ -166,4 +166,6 @@ if user_query is not None and find_youtube_links(user_query) != "":
|
|
166 |
with st.chat_message("AI"):
|
167 |
st.write(response)
|
168 |
|
169 |
-
st.session_state.chat_history.append(AIMessage(content=response))
|
|
|
|
|
|
103 |
|
104 |
# App config
|
105 |
st.set_page_config(page_title="GOAHEAD.VN", page_icon="π")
|
106 |
+
st.title("GOAHEAD.VN AI π€")
|
107 |
|
108 |
# Initialize session state
|
109 |
if "chat_history" not in st.session_state:
|
|
|
166 |
with st.chat_message("AI"):
|
167 |
st.write(response)
|
168 |
|
169 |
+
st.session_state.chat_history.append(AIMessage(content=response))
|
170 |
+
else:
|
171 |
+
st.session_state.chat_history.append(AIMessage(content="Please drop the YouTube link related to the financial market, and I will help you summarize and provide insights."))
|