-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix and update service schemas and apps #2980
base: develop
Are you sure you want to change the base?
Conversation
@@ -12,7 +12,7 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
|
|||
from typing import Any, Dict, List | |||
from typing import Any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
去除未用到的部分
@@ -50,6 +50,7 @@ async def _infer( | |||
images, | |||
use_doc_orientation_classify=request.useDocOrientationClassify, | |||
use_doc_unwarping=request.useDocUnwarping, | |||
use_textline_orientation=request.useTextlineOrientation, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
适应新接口
index_data = IndexData.from_bytes(index_data_bytes) | ||
else: | ||
index_data = None | ||
index_storage = ctx.extra["index_storage"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里原先和产线功能没对齐;该参数应该是required
@@ -14,7 +14,7 @@ | |||
|
|||
from typing import List | |||
|
|||
from pydantic import Field, BaseModel | |||
from pydantic import BaseModel, Field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isort自动修复
No description provided.