Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ from loguru import logger
|
|
17 |
st.set_page_config(page_title="Talk2Book", page_icon="📖")
|
18 |
|
19 |
# ns = SimpleNamespace(counter=0)
|
20 |
-
os.environ["OPENAI_API_KEY"]
|
21 |
open_api_key = os.getenv('OPENAI_API_KEY', '')
|
22 |
logger.debug(f" open_api_key: [{open_api_key}]")
|
23 |
|
|
|
17 |
st.set_page_config(page_title="Talk2Book", page_icon="📖")
|
18 |
|
19 |
# ns = SimpleNamespace(counter=0)
|
20 |
+
os.environ["OPENAI_API_KEY"] = st.secrets["OPENAI_API_KEY"]
|
21 |
open_api_key = os.getenv('OPENAI_API_KEY', '')
|
22 |
logger.debug(f" open_api_key: [{open_api_key}]")
|
23 |
|