AlStable commited on
Commit
c80d1cd
·
1 Parent(s): 4564715

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1,5 +1,13 @@
1
  import os
2
  import gradio as gr
 
 
 
 
 
 
 
 
3
 
4
  API_KEY=os.environ.get('HUGGING_FACE_HUB_TOKEN', None)
5
  article = """---
 
1
  import os
2
  import gradio as gr
3
+ import logging
4
+
5
+ LOG_FORMAT = '%(asctime)s - %(levelname)s [%(name)s] %(funcName)s -> %(message)s'
6
+ logging.basicConfig(filename = 'console-aw.log',
7
+ level = logging.DEBUG,
8
+ format = LOG_FORMAT)
9
+ logger = logging.getLogger(__name__)
10
+ logger.debug('Logging started')
11
 
12
  API_KEY=os.environ.get('HUGGING_FACE_HUB_TOKEN', None)
13
  article = """---