moxiaoying commited on
Commit
3502afb
·
verified ·
1 Parent(s): dcdf971

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +0 -3
app/main.py CHANGED
@@ -57,9 +57,6 @@ async def slide_match_endpoint(
57
  simple_target: bool = Form(False)
58
  ):
59
  try:
60
- if (background is None) or (target is None):
61
- return APIResponse(code=400, message="Both target and background must be provided")
62
-
63
  target_bytes = await decode_image(target_file or target)
64
  background_bytes = await decode_image(background_file or background)
65
  result = ocr_service.slide_match(target_bytes, background_bytes, simple_target)
 
57
  simple_target: bool = Form(False)
58
  ):
59
  try:
 
 
 
60
  target_bytes = await decode_image(target_file or target)
61
  background_bytes = await decode_image(background_file or background)
62
  result = ocr_service.slide_match(target_bytes, background_bytes, simple_target)