bofenghuang commited on
Commit
07fa407
β€’
1 Parent(s): eb937e4

update logger

Browse files
Files changed (2) hide show
  1. run_demo.py +1 -1
  2. run_demo_streaming.py +1 -1
run_demo.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  from transformers import pipeline
5
 
6
  logging.basicConfig(
7
- format="%(asctime)s [%(levelname)s] [NLU] [Trainer] %(message)s",
8
  datefmt="%Y-%m-%dT%H:%M:%SZ",
9
  )
10
  logger = logging.getLogger(__name__)
 
4
  from transformers import pipeline
5
 
6
  logging.basicConfig(
7
+ format="%(asctime)s [%(levelname)s] [%(name)s] %(message)s",
8
  datefmt="%Y-%m-%dT%H:%M:%SZ",
9
  )
10
  logger = logging.getLogger(__name__)
run_demo_streaming.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  from transformers import pipeline
5
 
6
  logging.basicConfig(
7
- format="%(asctime)s [%(levelname)s] [NLU] [Trainer] %(message)s",
8
  datefmt="%Y-%m-%dT%H:%M:%SZ",
9
  )
10
  logger = logging.getLogger(__name__)
 
4
  from transformers import pipeline
5
 
6
  logging.basicConfig(
7
+ format="%(asctime)s [%(levelname)s] [%(name)s] %(message)s",
8
  datefmt="%Y-%m-%dT%H:%M:%SZ",
9
  )
10
  logger = logging.getLogger(__name__)