Spaces:
Runtime error
Runtime error
bofenghuang
commited on
Commit
β’
07fa407
1
Parent(s):
eb937e4
update logger
Browse files- run_demo.py +1 -1
- 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] [
|
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] [
|
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__)
|