Skip to content

Commit

Permalink
fix: fix vercel deployment engines (using node version 18.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Apr 25, 2024
1 parent 1a1bce7 commit 57cef1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def favicon():


@app.post("/upload")
async def upload(file: UploadFile = File(...), model: str = Form(...)):
async def upload(file: UploadFile = File(...), model: str = Form(default="")):
"""Accepts file and returns its contents."""

try:
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"engines": {
"node": "18.x"
}
}

0 comments on commit 57cef1b

Please sign in to comment.