eaglelandsonce commited on
Commit
749fd07
·
1 Parent(s): f5615fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -142,7 +142,8 @@ def read_file_content(file,max_length):
142
  return ""
143
 
144
  def main():
145
-
 
146
  api_key = st.text_input("Enter OpenAI API Key:", type='password')
147
  if api_key:
148
  openai.api_key = api_key
@@ -216,6 +217,12 @@ def main():
216
 
217
  else:
218
  st.error("Please provide the OpenAI API Key either through the input box or set the OPENAI_KEY environment variable.")
 
 
 
 
 
 
219
 
220
  if __name__ == "__main__":
221
  main()
 
142
  return ""
143
 
144
  def main():
145
+
146
+ st.title('Chat Toolkit')
147
  api_key = st.text_input("Enter OpenAI API Key:", type='password')
148
  if api_key:
149
  openai.api_key = api_key
 
217
 
218
  else:
219
  st.error("Please provide the OpenAI API Key either through the input box or set the OPENAI_KEY environment variable.")
220
+ left_col, center_col, right_col = st.columns([1, 6, 1])
221
+
222
+ with center_col:
223
+ st.title('Chat Toolkit')
224
+ st.warning('Please enter your OpenAI API key in the left sidebar.')
225
+ st.image('ai2.png', use_column_width=True)
226
 
227
  if __name__ == "__main__":
228
  main()