navalnica commited on
Commit
5dec512
Β·
1 Parent(s): 84211a6

add logging and .env.template

Browse files
Files changed (2) hide show
  1. .env.template +2 -0
  2. 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")