Blane187 commited on
Commit
1453fd0
·
verified ·
1 Parent(s): f27ce24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -3,10 +3,9 @@ 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 = os.getenv(API_KEY)
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
 
 
 
9
 
10
  start_sequence = "\nAI:"
11
  restart_sequence = "\nHuman: "