vinhnx90 commited on
Commit
9e53bcd
1 Parent(s): e4ab000

Update app

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -80,13 +80,15 @@ def main():
80
  if not st.secrets.OPENAI_API_KEY:
81
  st.info("Please add your OpenAI API key to continue.")
82
 
83
- assistant_message = "Hello, you can upload a document and chat with me to ask questions related to its content. Start by adding OpenAI API Key in the sidebar."
 
 
 
 
84
  st.session_state["messages"] = [
85
  Assistant(message=assistant_message).build_message()
86
  ]
87
 
88
- st.chat_message(ChatProfileRoleEnum.Assistant).write(assistant_message)
89
-
90
  if prompt := st.chat_input(
91
  placeholder="Chat with your document",
92
  disabled=(not openai_api_key),
 
80
  if not st.secrets.OPENAI_API_KEY:
81
  st.info("Please add your OpenAI API key to continue.")
82
 
83
+ assistant_message = """
84
+ Hello, you can upload a document and chat with me to ask questions related to its content.
85
+
86
+ Start by adding OpenAI API Key in the sidebar.
87
+ """
88
  st.session_state["messages"] = [
89
  Assistant(message=assistant_message).build_message()
90
  ]
91
 
 
 
92
  if prompt := st.chat_input(
93
  placeholder="Chat with your document",
94
  disabled=(not openai_api_key),