Skip to content

Commit

Permalink
make params optional
Browse files Browse the repository at this point in the history
  • Loading branch information
listofbanned committed Nov 5, 2022
1 parent 7ae6aba commit e657de5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ def main():
@app.post('/upload')
async def upload_image(
task: str = Form(),
question: str = Form(),
caption: str = Form(),
mode: str = Form(),
match_head: str = Form(),
question: [str, None] = Form(),
caption: [str, None] = Form(),
mode: [str, None] = Form(),
match_head: [str, None] = Form(),
file: UploadFile = Form()
):
try:
Expand Down

0 comments on commit e657de5

Please sign in to comment.