JTRNS
commited on
Commit
·
ae29a25
1
Parent(s):
ed0bdc4
fix: Remove pydantic max length check
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ async def split_text(request: Request, text: Annotated[str, Form()] = ""):
|
|
34 |
)
|
35 |
|
36 |
@app.post("/api/split")
|
37 |
-
async def split_file(file: Annotated[bytes, File(
|
38 |
if len(file) > 1.44 * 1024 * 1024: # 1.44 MB
|
39 |
raise HTTPException(status_code=413, detail="File too large")
|
40 |
text = file.decode("utf-8")
|
|
|
34 |
)
|
35 |
|
36 |
@app.post("/api/split")
|
37 |
+
async def split_file(file: Annotated[bytes, File()]):
|
38 |
if len(file) > 1.44 * 1024 * 1024: # 1.44 MB
|
39 |
raise HTTPException(status_code=413, detail="File too large")
|
40 |
text = file.decode("utf-8")
|