接口添加日志
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import logging
|
||||
import os.path
|
||||
|
||||
import cv2
|
||||
from flask import Flask, request
|
||||
|
||||
from log import LOGGING_CONFIG
|
||||
from paddle_detection import detector
|
||||
from utils import process_request, parse_img_path
|
||||
|
||||
@@ -25,4 +27,5 @@ def books():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
logging.config.dictConfig(LOGGING_CONFIG)
|
||||
app.run('0.0.0.0', 5006)
|
||||
|
||||
Reference in New Issue
Block a user