Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
guanshuicheng authored Aug 18, 2019
1 parent 740e42c commit 9e014cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def invoice_ocr():
if not allowed_file(invoice_file_name):
return build_api_result(102, "失败,文件格式问题", {},{},{})

os.mkdir("./test")
upload_path = "test"
whole_path = os.path.join(upload_path,invoice_file_name)
file.save(whole_path)
Expand Down Expand Up @@ -128,4 +129,4 @@ def Recognition_invoice(path):
if __name__ == "__main__":
# Run
app.config['JSON_AS_ASCII'] = False
app.run(host='0.0.0.0', port=port, debug=False, use_reloader=False)
app.run(host='0.0.0.0', port=port, debug=False, use_reloader=False)

0 comments on commit 9e014cd

Please sign in to comment.