akhilhsingh commited on
Commit
9e8c98b
1 Parent(s): 3f3ca2e

Update app.py

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