Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import openai
|
|
| 9 |
from dotenv import load_dotenv
|
| 10 |
import os
|
| 11 |
|
| 12 |
-
load_dotenv()
|
| 13 |
api_key = os.getenv("OPENAI_API_KEY") # access the value of the OPENAI_API_KEY environment variable
|
| 14 |
|
| 15 |
def predict(message, history):
|
|
|
|
| 9 |
from dotenv import load_dotenv
|
| 10 |
import os
|
| 11 |
|
| 12 |
+
load_dotenv() # load environment variables from .env file
|
| 13 |
api_key = os.getenv("OPENAI_API_KEY") # access the value of the OPENAI_API_KEY environment variable
|
| 14 |
|
| 15 |
def predict(message, history):
|