mmullett commited on
Commit
20cba25
·
verified ·
1 Parent(s): fa43024

Update chaiT.py

Browse files
Files changed (1) hide show
  1. chaiT.py +3 -1
chaiT.py CHANGED
@@ -1,7 +1,9 @@
1
  import openai
2
  import gradio
 
3
 
4
- openai.api_key = "OPENAI_API_KEY"
 
5
 
6
  messages = [{"role": "system", "content": "You are an expert in the assistance of guiding people to a better solution."}]
7
 
 
1
  import openai
2
  import gradio
3
+ import os
4
 
5
+ api_key = os.getenv("OPENAI_API_KEY")
6
+ client = OpenAI(api_key=api_key)
7
 
8
  messages = [{"role": "system", "content": "You are an expert in the assistance of guiding people to a better solution."}]
9