From 6be2520736390077b534705470ea8ac4e86189b3 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Mon, 6 Mar 2023 19:43:59 +0000 Subject: [PATCH] Update notes.txt Added max request size note --- upload-image/notes.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/upload-image/notes.txt b/upload-image/notes.txt index d074e93..507b1fa 100644 --- a/upload-image/notes.txt +++ b/upload-image/notes.txt @@ -25,4 +25,10 @@ def prune_prompt(prompt): And call that from if h[x] == "PROMPT": - input_data_all[x] = prune_prompt(prompt) \ No newline at end of file + input_data_all[x] = prune_prompt(prompt) + + +It also requires increasing the maximum request size on the API in server.py + self.app = web.Application(client_max_size=20971520) + +Or some other sensible limit