Wootang01 commited on
Commit
060279d
1 Parent(s): 43d7d41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,7 +3,8 @@ import openai
3
  import gradio as gr
4
 
5
  #openai.api_key ="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"
6
- openai.api_key = myfirstsecret
 
7
 
8
  start_sequence = "\nAI:"
9
  restart_sequence = "\nHuman: "
 
3
  import gradio as gr
4
 
5
  #openai.api_key ="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"
6
+ apikey = os.environ.get('myfirstsecret')
7
+ openai.api_key = apikey
8
 
9
  start_sequence = "\nAI:"
10
  restart_sequence = "\nHuman: "