Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
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=
|
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"
|