Fix linting
This commit is contained in:
@@ -1155,6 +1155,7 @@ def create_app(args):
|
||||
converter = DocumentConverter()
|
||||
result = converter.convert(file_path)
|
||||
return result.document.export_to_markdown()
|
||||
|
||||
return await asyncio.to_thread(sync_convert)
|
||||
|
||||
content = await convert_doc()
|
||||
@@ -1449,11 +1450,13 @@ def create_app(args):
|
||||
f.write(await file.read())
|
||||
|
||||
try:
|
||||
|
||||
async def convert_doc():
|
||||
def sync_convert():
|
||||
converter = DocumentConverter()
|
||||
result = converter.convert(str(temp_path))
|
||||
return result.document.export_to_markdown()
|
||||
|
||||
return await asyncio.to_thread(sync_convert)
|
||||
|
||||
content = await convert_doc()
|
||||
|
Reference in New Issue
Block a user