We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Pb: unitest text_export_size not passing on tf 2.3.1
Unitest text_export_size not OK locally on tf 2.3.1 : 

```
def test_export_sizes(test_convert_to_tflite, test_convert_to_fp16, test_quantize_model):
        assert sys.getsizeof(test_convert_to_tflite) > sys.getsizeof(test_convert_to_fp16)
>       assert sys.getsizeof(test_convert_to_fp16) > sys.getsizeof(test_quantize_model)
E       AssertionError: assert 3041 > 3041

```

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 # Copyright (C) 2021, Mindee.
2 
3 # This program is licensed under the Apache License version 2.
4 # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.
5 
6 """
7 Package installation setup
8 """
9 
10 import os
11 from pathlib import Path
12 import subprocess
13 
14 from setuptools import find_packages, setup
15 
16 
17 version = "0.1.2a0"
18 sha = 'Unknown'
19 package_name = 'doctr'
20 
21 cwd = Path(__file__).parent.absolute()
22 
23 if os.getenv('BUILD_VERSION'):
24     version = os.getenv('BUILD_VERSION')
25 elif sha != 'Unknown':
26     try:
27         sha = subprocess.check_output(['git', 'rev-parse', 'HEAD'], cwd=cwd).decode('ascii').strip()
28     except Exception:
29         pass
30     version += '+' + sha[:7]
31 print(f"Building wheel {package_name}-{version}")
32 
33 with open(cwd.joinpath(package_name, 'version.py'), 'w') as f:
34     f.write(f"__version__ = '{version}'\n")
35 
36 with open('README.md', 'r') as f:
37     readme = f.read()
38 
39 requirements = [
40     "numpy>=1.16.0",
41     "scipy>=1.4.0",
42     "opencv-python>=4.2",
43     "tensorflow>=2.3.0",
44     "PyMuPDF>=1.16.0,<1.18.11",
45     "pyclipper>=1.2.0",
46     "shapely>=1.6.0",
47     "matplotlib>=3.1.0",
48     "mplcursors>=0.3",
49     "rapidfuzz>=1.0.0",
50     "weasyprint>=52.2",
51 ]
52 
53 setup(
54     # Metadata
55     name=os.getenv('PKG_INDEX') if os.getenv('PKG_INDEX') else package_name,
56     version=version,
57     author='François-Guillaume Fernandez, Charles Gaillard',
58     author_email='fg@mindee.co',
59     description='Extract valuable text information from your documents',
60     long_description=readme,
61     long_description_content_type="text/markdown",
62     url='https://github.com/mindee/doctr',
63     download_url='https://github.com/mindee/doctr/tags',
64     license='Apache',
65     classifiers=[
66         'Development Status :: 3 - Alpha',
67         'Intended Audience :: Developers',
68         'Intended Audience :: Science/Research',
69         'License :: OSI Approved :: Apache Software License',
70         'Natural Language :: English',
71         'Operating System :: OS Independent',
72         'Programming Language :: Python :: 3',
73         'Programming Language :: Python :: 3.6',
74         'Programming Language :: Python :: 3.7',
75         'Topic :: Scientific/Engineering',
76         'Topic :: Scientific/Engineering :: Artificial Intelligence',
77         'Topic :: Software Development',
78         'Topic :: Software Development :: Libraries',
79         'Topic :: Software Development :: Libraries :: Python Modules',
80     ],
81     keywords=['ocr', 'deep learning', 'tensorflow', 'text detection', 'text recognition'],
82 
83     # Package info
84     packages=find_packages(exclude=('test',)),
85     zip_safe=True,
86     python_requires='>=3.6.0',
87     include_package_data=True,
88     install_requires=requirements,
89     package_data={'': ['LICENSE']}
90 )
91
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@
     "numpy>=1.16.0",
     "scipy>=1.4.0",
     "opencv-python>=4.2",
-    "tensorflow>=2.3.0",
+    "tensorflow>=2.4.0",
     "PyMuPDF>=1.16.0,<1.18.11",
     "pyclipper>=1.2.0",
     "shapely>=1.6.0",

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -40,7 +40,7 @@\n     \"numpy>=1.16.0\",\n     \"scipy>=1.4.0\",\n     \"opencv-python>=4.2\",\n-    \"tensorflow>=2.3.0\",\n+    \"tensorflow>=2.4.0\",\n     \"PyMuPDF>=1.16.0,<1.18.11\",\n     \"pyclipper>=1.2.0\",\n     \"shapely>=1.6.0\",\n", "issue": "Pb: unitest text_export_size not passing on tf 2.3.1\nUnitest text_export_size not OK locally on tf 2.3.1 : \r\n\r\n```\r\ndef test_export_sizes(test_convert_to_tflite, test_convert_to_fp16, test_quantize_model):\r\n        assert sys.getsizeof(test_convert_to_tflite) > sys.getsizeof(test_convert_to_fp16)\r\n>       assert sys.getsizeof(test_convert_to_fp16) > sys.getsizeof(test_quantize_model)\r\nE       AssertionError: assert 3041 > 3041\r\n\r\n```\n", "before_files": [{"content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nfrom pathlib import Path\nimport subprocess\n\nfrom setuptools import find_packages, setup\n\n\nversion = \"0.1.2a0\"\nsha = 'Unknown'\npackage_name = 'doctr'\n\ncwd = Path(__file__).parent.absolute()\n\nif os.getenv('BUILD_VERSION'):\n    version = os.getenv('BUILD_VERSION')\nelif sha != 'Unknown':\n    try:\n        sha = subprocess.check_output(['git', 'rev-parse', 'HEAD'], cwd=cwd).decode('ascii').strip()\n    except Exception:\n        pass\n    version += '+' + sha[:7]\nprint(f\"Building wheel {package_name}-{version}\")\n\nwith open(cwd.joinpath(package_name, 'version.py'), 'w') as f:\n    f.write(f\"__version__ = '{version}'\\n\")\n\nwith open('README.md', 'r') as f:\n    readme = f.read()\n\nrequirements = [\n    \"numpy>=1.16.0\",\n    \"scipy>=1.4.0\",\n    \"opencv-python>=4.2\",\n    \"tensorflow>=2.3.0\",\n    \"PyMuPDF>=1.16.0,<1.18.11\",\n    \"pyclipper>=1.2.0\",\n    \"shapely>=1.6.0\",\n    \"matplotlib>=3.1.0\",\n    \"mplcursors>=0.3\",\n    \"rapidfuzz>=1.0.0\",\n    \"weasyprint>=52.2\",\n]\n\nsetup(\n    # Metadata\n    name=os.getenv('PKG_INDEX') if os.getenv('PKG_INDEX') else package_name,\n    version=version,\n    author='Fran\u00e7ois-Guillaume Fernandez, Charles Gaillard',\n    author_email='fg@mindee.co',\n    description='Extract valuable text information from your documents',\n    long_description=readme,\n    long_description_content_type=\"text/markdown\",\n    url='https://github.com/mindee/doctr',\n    download_url='https://github.com/mindee/doctr/tags',\n    license='Apache',\n    classifiers=[\n        'Development Status :: 3 - Alpha',\n        'Intended Audience :: Developers',\n        'Intended Audience :: Science/Research',\n        'License :: OSI Approved :: Apache Software License',\n        'Natural Language :: English',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Topic :: Scientific/Engineering',\n        'Topic :: Scientific/Engineering :: Artificial Intelligence',\n        'Topic :: Software Development',\n        'Topic :: Software Development :: Libraries',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n    ],\n    keywords=['ocr', 'deep learning', 'tensorflow', 'text detection', 'text recognition'],\n\n    # Package info\n    packages=find_packages(exclude=('test',)),\n    zip_safe=True,\n    python_requires='>=3.6.0',\n    include_package_data=True,\n    install_requires=requirements,\n    package_data={'': ['LICENSE']}\n)\n", "path": "setup.py"}], "after_files": [{"content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nfrom pathlib import Path\nimport subprocess\n\nfrom setuptools import find_packages, setup\n\n\nversion = \"0.1.2a0\"\nsha = 'Unknown'\npackage_name = 'doctr'\n\ncwd = Path(__file__).parent.absolute()\n\nif os.getenv('BUILD_VERSION'):\n    version = os.getenv('BUILD_VERSION')\nelif sha != 'Unknown':\n    try:\n        sha = subprocess.check_output(['git', 'rev-parse', 'HEAD'], cwd=cwd).decode('ascii').strip()\n    except Exception:\n        pass\n    version += '+' + sha[:7]\nprint(f\"Building wheel {package_name}-{version}\")\n\nwith open(cwd.joinpath(package_name, 'version.py'), 'w') as f:\n    f.write(f\"__version__ = '{version}'\\n\")\n\nwith open('README.md', 'r') as f:\n    readme = f.read()\n\nrequirements = [\n    \"numpy>=1.16.0\",\n    \"scipy>=1.4.0\",\n    \"opencv-python>=4.2\",\n    \"tensorflow>=2.4.0\",\n    \"PyMuPDF>=1.16.0,<1.18.11\",\n    \"pyclipper>=1.2.0\",\n    \"shapely>=1.6.0\",\n    \"matplotlib>=3.1.0\",\n    \"mplcursors>=0.3\",\n    \"rapidfuzz>=1.0.0\",\n    \"weasyprint>=52.2\",\n]\n\nsetup(\n    # Metadata\n    name=os.getenv('PKG_INDEX') if os.getenv('PKG_INDEX') else package_name,\n    version=version,\n    author='Fran\u00e7ois-Guillaume Fernandez, Charles Gaillard',\n    author_email='fg@mindee.co',\n    description='Extract valuable text information from your documents',\n    long_description=readme,\n    long_description_content_type=\"text/markdown\",\n    url='https://github.com/mindee/doctr',\n    download_url='https://github.com/mindee/doctr/tags',\n    license='Apache',\n    classifiers=[\n        'Development Status :: 3 - Alpha',\n        'Intended Audience :: Developers',\n        'Intended Audience :: Science/Research',\n        'License :: OSI Approved :: Apache Software License',\n        'Natural Language :: English',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Topic :: Scientific/Engineering',\n        'Topic :: Scientific/Engineering :: Artificial Intelligence',\n        'Topic :: Software Development',\n        'Topic :: Software Development :: Libraries',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n    ],\n    keywords=['ocr', 'deep learning', 'tensorflow', 'text detection', 'text recognition'],\n\n    # Package info\n    packages=find_packages(exclude=('test',)),\n    zip_safe=True,\n    python_requires='>=3.6.0',\n    include_package_data=True,\n    install_requires=requirements,\n    package_data={'': ['LICENSE']}\n)\n", "path": "setup.py"}]}