Skip to content

Commit

Permalink
Defaut max_request_size class var to None.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeichikawasalesforce committed May 22, 2023
1 parent 156c7d9 commit e35346f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tabpy/tabpy_server/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class TabPyApp:
python_service = None
credentials = {}
arrow_server = None
max_request_size = 0
max_request_size = None

def __init__(self, config_file):
if config_file is None:
Expand Down Expand Up @@ -121,6 +121,7 @@ def run(self):
self.max_request_size = (
int(self.settings[SettingsParameters.MaxRequestSizeInMb]) * 1024 * 1024
)
print(f"Setting max request size to {self.max_request_size} bytes")
logger.info(f"Setting max request size to {self.max_request_size} bytes")

init_model_evaluator(self.settings, self.tabpy_state, self.python_service)
Expand Down

0 comments on commit e35346f

Please sign in to comment.