Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import openai
|
|
6 |
|
7 |
load_dotenv()
|
8 |
|
9 |
-
openai.api_key =
|
10 |
|
11 |
def get_openai_response(question):
|
12 |
response = openai.ChatCompletion.create(
|
|
|
6 |
|
7 |
load_dotenv()
|
8 |
|
9 |
+
openai.api_key = os.getenv("OPENAI_API_KEY")
|
10 |
|
11 |
def get_openai_response(question):
|
12 |
response = openai.ChatCompletion.create(
|