jbilcke-hf HF staff commited on
Commit
60b29ba
·
1 Parent(s): d30f5cb

fix a limitation

Browse files
Files changed (1) hide show
  1. src/index.mts +4 -0
src/index.mts CHANGED
@@ -37,6 +37,10 @@ app.use(express.json())
37
 
38
  let isRendering = false
39
 
 
 
 
 
40
  // an image analyzing pipeline
41
  app.post("/analyze", async (req, res) => {
42
 
 
37
 
38
  let isRendering = false
39
 
40
+ // fix this error: "PayloadTooLargeError: request entity too large"
41
+ app.use(express.json({limit: '50mb'}));
42
+ app.use(express.urlencoded({limit: '50mb'}));
43
+
44
  // an image analyzing pipeline
45
  app.post("/analyze", async (req, res) => {
46