LeoWalker commited on
Commit
e2c0d7e
·
1 Parent(s): 7227b93

added instructions on how to get a google api key

Browse files
Files changed (1) hide show
  1. streamlit-gpt4o/app.py +3 -1
streamlit-gpt4o/app.py CHANGED
@@ -142,9 +142,11 @@ with st.sidebar:
142
  st.session_state.session_id = None
143
  st.rerun()
144
 
 
 
145
 
146
  if not with_message_history:
147
- st.error("Please enter an Google Generative AI API key in the sidebar.")
148
 
149
  else:
150
  with bottom:
 
142
  st.session_state.session_id = None
143
  st.rerun()
144
 
145
+ # write instructions to go here to get started with google generative ai and gemini https://aistudio.google.com/
146
+
147
 
148
  if not with_message_history:
149
+ st.error("Please enter a Google Generative AI API key in the sidebar. \n\nTo get started with Google Generative AI and Gemini, follow these steps:\n\n1. Go to [https://aistudio.google.com/](https://aistudio.google.com/)\n2. Sign in or create a new account if you don't have one.\n3. Explore the available models and select the one that suits your needs.\n4. Obtain an API key for the Google Generative AI API.\n5. In the sidebar, enter the obtained API key in the 'Google Generative AI API Key' field.\n6. Choose whether to use the 'Pro' or 'Flash' version of the Gemini model by toggling the switch.\n7. Start using the Google Generative AI and Gemini models in your chatbot application!")
150
 
151
  else:
152
  with bottom: