index.html 1.0 KB

123456789101112131415161718192021222324
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h2>Excel图片相似查找管理系统</h2>
  4. <form method="POST" enctype="multipart/form-data">
  5. <div>
  6. <label for="file">选择图片:</label>
  7. <input type="file" id="file" name="file" required>
  8. </div>
  9. <div>
  10. <label for="upload_folder">选择 xlsx,docx 文件目录:</label>
  11. <input style="width: 250px;" type="text" id="upload_folder" name="upload_folder" placeholder="例如: /path/to/excel/files" value="/workspace/flask_image_matcher/" required>
  12. </div>
  13. <div>
  14. <label for="similarity_threshold">设置相似度阈值:</label>
  15. <input type="number" id="similarity_threshold" name="similarity_threshold" step="0.01" min="0.8" max="0.95"
  16. value="0.85" required>
  17. </div>
  18. <div>
  19. <label for="time_label">指定时间标签:</label>
  20. <input type="text" id="time_label" name="time_label" placeholder="例如: 120分钟" required>
  21. </div>
  22. <button type="submit">开始匹配</button>
  23. </form>
  24. {% endblock %}