Skip to content

Commit

Permalink
Fix optional to current PY version
Browse files Browse the repository at this point in the history
  • Loading branch information
listofbanned committed Nov 5, 2022
1 parent e657de5 commit c0e70b7
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, None] = Form(),
caption: [str, None] = Form(),
mode: [str, None] = Form(),
match_head: [str, None] = 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 c0e70b7

Please sign in to comment.