RakeshUtekar commited on
Commit
16f2a40
·
verified ·
1 Parent(s): 367c60e

Update generate.py

Browse files
Files changed (1) hide show
  1. generate.py +1 -1
generate.py CHANGED
@@ -7,7 +7,7 @@ from dotenv import load_dotenv
7
  load_dotenv()
8
 
9
  # Retrieve the OpenAI API key from the environment variable
10
- openai.api_key = os.getenv('OPENAI_API_KEY')
11
 
12
  def generate_response(retrieved_texts, query, max_tokens=150):
13
  """
 
7
  load_dotenv()
8
 
9
  # Retrieve the OpenAI API key from the environment variable
10
+ openai.api_key = os.getenv('api_key')
11
 
12
  def generate_response(retrieved_texts, query, max_tokens=150):
13
  """