Uwais commited on
Commit
65d04e7
·
1 Parent(s): bdc7437

Getting secrets for HF

Browse files
Files changed (1) hide show
  1. pages/7_💬️_Chat_Demo.py +1 -1
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"