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