Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -356,7 +356,7 @@ async def extract_upload_file(file: UploadFile = File(...)):
|
|
356 |
# Returns a List[Element] present in the pages of the parsed pdf document
|
357 |
elements = partition_pdf(file_savePath, languages=["vie"])
|
358 |
|
359 |
-
|
360 |
|
361 |
return get_elements_by_schemas(elements, schemas)
|
362 |
|
|
|
356 |
# Returns a List[Element] present in the pages of the parsed pdf document
|
357 |
elements = partition_pdf(file_savePath, languages=["vie"])
|
358 |
|
359 |
+
schemas = [{'name':'publisher','layout_type':'Title','position':0,'from_last':False},{'name':'number','layout_type':'Text','position':0,'from_last':False, 'label':['Số','Luật số']}]
|
360 |
|
361 |
return get_elements_by_schemas(elements, schemas)
|
362 |
|