I use flask,and write a interface,code:
def scale_images_in_docx(file_path):
document = aw.Document(file_path)
paragraphs = document.get_child_nodes(aw.NodeType.PARAGRAPH, True)
for paragraph in paragraphs:
print(paragraph.as_paragraph().get_text())
@extra_interface.route("/submit1", methods=['POST'])
def document_extra1():
scale_images_in_docx("D:/project/python_project/kai-wis/kai_wis_ai_backend/4月17号会议待办.docx")
return {'name':'1'}
then I create a post request in postman,but run error,Terminal just print “进程已结束,退出代码为 -1073741819 (0xC0000005)”