Demosthene-OR commited on
Commit
6ae3a1b
·
1 Parent(s): a3b5c68

Update playground.py

Browse files
Files changed (1) hide show
  1. tabs/playground.py +2 -2
tabs/playground.py CHANGED
@@ -9,8 +9,8 @@ warnings.filterwarnings('ignore')
9
 
10
  # if st.session_state.Cloud == 0:
11
  # load_dotenv()
12
- os.getenv("OPENAI_API_KEY")
13
- openai.api_key = os.environ['OPENAI_API_KEY']
14
 
15
  title = "Playground ChatGPT"
16
  sidebar_name = "Playground"
 
9
 
10
  # if st.session_state.Cloud == 0:
11
  # load_dotenv()
12
+ # os.getenv("OPENAI_API_KEY")
13
+ openai.api_key = st.session_state['OPENAI_API_KEY'] # os.environ['OPENAI_API_KEY']
14
 
15
  title = "Playground ChatGPT"
16
  sidebar_name = "Playground"