init
This commit is contained in:
parent
8fce4c192e
commit
88d8f815f5
|
@ -17,7 +17,8 @@ os.environ['TOKENIZERS_PARALLELISM'] = 'false'
|
||||||
from eventlet import tpool
|
from eventlet import tpool
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
logging.basicConfig(format='%(levelname)s - %(module)s:%(lineno)d - %(message)s',level=logging.WARNING)
|
from loguru import logger
|
||||||
|
logger.debug("That's it, beautiful and simple logging!")
|
||||||
logging.getLogger("urllib3").setLevel(logging.ERROR)
|
logging.getLogger("urllib3").setLevel(logging.ERROR)
|
||||||
|
|
||||||
from os import path, getcwd
|
from os import path, getcwd
|
||||||
|
@ -66,6 +67,7 @@ try:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
import transformers.generation_utils
|
import transformers.generation_utils
|
||||||
|
|
||||||
global tpu_mtj_backend
|
global tpu_mtj_backend
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,3 +15,4 @@ accelerate
|
||||||
flask-session
|
flask-session
|
||||||
marshmallow>=3.13
|
marshmallow>=3.13
|
||||||
apispec-webframeworks
|
apispec-webframeworks
|
||||||
|
loguru
|
Loading…
Reference in New Issue