upload_ok.html 753 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>上传图片进行识别</title>
  6. </head>
  7. <body>
  8. <h1>上传图片识别</h1>
  9. <form action="" enctype='multipart/form-data' method='POST'>
  10. <input type="file" name="file" style="margin-top:20px;"/>
  11. <br>
  12. <input type="text" class="txt_input" name="name" style="margin-top:10px;"/>
  13. <input type="submit" value="上传" class="button-new" style="margin-top:15px;"/>
  14. </form>
  15. <h1>输入内容:{{userinput}}!</h1>
  16. <br>
  17. <h2>result: {{result}}</h2>
  18. <br>
  19. <img src="{{ url_for('static', filename= './images/' + img_name, _t=val1) }}" width="400" height="400" alt="你的图片被外星人劫持了~~"/>
  20. </body>
  21. </html>