Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ load_dotenv(".env")
|
|
8 |
|
9 |
openai.api_key = os.environ.get("openai_api_key")
|
10 |
|
11 |
-
|
12 |
|
13 |
with open("guide1.txt") as f:
|
14 |
hitchhikersguide = f.read()
|
|
|
8 |
|
9 |
openai.api_key = os.environ.get("openai_api_key")
|
10 |
|
11 |
+
os.environ["OPENAI_API_KEY"] = openai.api_key
|
12 |
|
13 |
with open("guide1.txt") as f:
|
14 |
hitchhikersguide = f.read()
|