From 70095e90bb2b1fbf0e83024c00fcae65e23c025d Mon Sep 17 00:00:00 2001 From: zty Date: Fri, 15 Nov 2024 09:43:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E5=A2=9E=E5=8A=A0=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E8=91=97=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 6b60140..bd63a63 100644 --- a/main.py +++ b/main.py @@ -268,7 +268,7 @@ software_patterns = [ }, ) async def extract_info( - file_type: Literal["standard", "patent", "country", "building", "social", "province"] = Form( + file_type: Literal["standard", "patent", "country", "building", "social", "province", "software"] = Form( ..., description="Specify the type of file to extract." ), extract_method: Literal["re", "chat"] = Form( @@ -349,6 +349,7 @@ async def extract_info( return JSONResponse(content=info) + if __name__ == "__main__": uvicorn.run( app="main:app",