akhilhsingh commited on
Commit
69178e3
1 Parent(s): ed79639

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import openai
3
 
4
  # Replace the placeholder text with your actual OpenAI API key
5
- openai.api_key = OPENAPI_KEY
6
 
7
  def chat_with_gpt3(prompt):
8
  response = openai.ChatCompletion.create(
 
2
  import openai
3
 
4
  # Replace the placeholder text with your actual OpenAI API key
5
+ openai.api_key = os.environ['OPENAPI_KEY']
6
 
7
  def chat_with_gpt3(prompt):
8
  response = openai.ChatCompletion.create(