Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,6 @@ API_KEY = os.getenv("open_ai-key")
|
|
10 |
with open(".env", "w") as env_file:
|
11 |
env_file.write(f"openai_api_key={API_KEY}\n")
|
12 |
|
13 |
-
#echo openai_api_key="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" > .env
|
14 |
-
|
15 |
load_dotenv(".env")
|
16 |
|
17 |
openai.api_key = os.environ.get("openai_api_key")
|
|
|
10 |
with open(".env", "w") as env_file:
|
11 |
env_file.write(f"openai_api_key={API_KEY}\n")
|
12 |
|
|
|
|
|
13 |
load_dotenv(".env")
|
14 |
|
15 |
openai.api_key = os.environ.get("openai_api_key")
|