hienbm commited on
Commit
87b7efa
Β·
verified Β·
1 Parent(s): 118637b

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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("Get financial insights with GOAHEAD.VN")
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."))