HVAC_flask / templates /index.html
shrey14's picture
Update templates/index.html
7894092 verified
raw
history blame contribute delete
861 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HVAC Symbol Detector</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<h1>HVAC Symbol Detector</h1>
<form action="/" method="POST" enctype="multipart/form-data">
<input type="file" name="image" accept="image/*" required>
<button type="submit">Upload & Detect</button>
</form>
{% if final_image %}
<h2>Processed Image</h2>
<img src="{{ final_image }}" alt="Processed Image">
<h2>Detected Symbols</h2>
<ul>
{% for label, count in counts.items() %}
<li>{{ label }}: {{ count }}</li>
{% endfor %}
</ul>
{% endif %}
</body>
</html>