Uwais commited on
Commit
65d04e7
β€’
1 Parent(s): bdc7437

Getting secrets for HF

Browse files
pages/7_πŸ’¬οΈ_Chat_Demo.py CHANGED
@@ -23,7 +23,7 @@ add_logo_to_sidebar()
23
 
24
  st.title('πŸ’¬ Chat Demo')
25
 
26
- client = OpenAI(api_key=st.secrets["OPENAI_API_KEY"], organization=st.secrets["OPENAI_ORG"])
27
 
28
  if "openai_model" not in st.session_state:
29
  st.session_state["openai_model"] = "gpt-3.5-turbo"
 
23
 
24
  st.title('πŸ’¬ Chat Demo')
25
 
26
+ client = OpenAI(api_key=os.environ["OPENAI_API_KEY"], organization=os.environ["OPENAI_ORG"])
27
 
28
  if "openai_model" not in st.session_state:
29
  st.session_state["openai_model"] = "gpt-3.5-turbo"