maodd commited on
Commit
a6e93ea
·
1 Parent(s): 133a43e

move key to env.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,10 +3,10 @@ import openai
3
  import gradio as gr
4
 
5
  #if you have OpenAI API key as an environment variable, enable the below
6
- #openai.api_key = os.getenv("OPENAI_API_KEY")
7
 
8
  #if you have OpenAI API key as a string, enable the below
9
- openai.api_key = "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"
10
 
11
  start_sequence = "\nAI:"
12
  restart_sequence = "\nHuman: "
 
3
  import gradio as gr
4
 
5
  #if you have OpenAI API key as an environment variable, enable the below
6
+ openai.api_key = os.getenv("OPENAI_API_KEY")
7
 
8
  #if you have OpenAI API key as a string, enable the below
9
+ openai.api_key = ""
10
 
11
  start_sequence = "\nAI:"
12
  restart_sequence = "\nHuman: "