Spaces:
Running
Running
navalnica
commited on
Commit
Β·
5dec512
1
Parent(s):
84211a6
add logging and .env.template
Browse files- .env.template +2 -0
- src/config.py +7 -0
.env.template
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
OPENAI_API_KEY="..."
|
2 |
+
11LABS_API_KEY="..."
|
src/config.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import logging
|
2 |
+
|
3 |
+
logging.basicConfig(
|
4 |
+
level=logging.INFO,
|
5 |
+
format="%(asctime)s [%(levelname)s] %(name)s (%(filename)s): %(message)s",
|
6 |
+
)
|
7 |
+
logger = logging.getLogger("audio-books")
|