Skip to content

Commit

Permalink
Increase MAX_CONTENT_LENGTH to 1GB (#46)
Browse files Browse the repository at this point in the history
* Increase MAX_CONTENT_LENGTH to 1GB

* Pin grpcio to 1.38.0

Co-authored-by: Hoàng Tùng Lâm (Linus) <lamhoangtung.vz@gmail.com>
  • Loading branch information
meocong and lamhoangtung committed Aug 27, 2021
1 parent d81f6b5 commit 33fe470
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mlchain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
)

# Parameters of MLchain
__version__ = "0.2.2"
__version__ = "0.2.3"
HOST = "https://www.api.mlchain.ml"
WEB_HOST = HOST
API_ADDRESS = HOST
Expand Down
2 changes: 1 addition & 1 deletion mlchain/server/flask_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def __init__(self, model: ServeModel, name=None, version='0.0',
static_url_path=static_url_path)

self.app.url_map.strict_slashes = False
self.app.config['MAX_CONTENT_LENGTH'] = 200 * 1024 * 1024
self.app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 1024
self.app.config['JSONIFY_PRETTYPRINT_REGULAR'] = True

self.converter = Converter(FileStorage, self._get_file_name, self._get_data)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ uvloop==0.14.0; sys_platform != 'win32' and python_version == '3.6'
uvloop>=0.14.0; sys_platform != 'win32' and python_version >= '3.7'
Werkzeug>=1.0.1
httpx==0.18.2
grpcio
grpcio==1.38.0
protobuf>=3.10.0
boto3>=1.16.43
pyyaml>=5.3.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pathlib
import os
from setuptools import setup, find_packages
__version__ = "0.2.2"
__version__ = "0.2.3"

project = "mlchain"

Expand Down

0 comments on commit 33fe470

Please sign in to comment.