RakeshUtekar
commited on
Update generate.py
Browse files- 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('
|
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 |
"""
|