kotimalla's picture
first
4f0b54e
raw
history blame contribute delete
No virus
1.48 kB
<!DOCTYPE html>
<html>
<head>
<title>Image Upload and Display</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
}
h1 {
color: #333;
}
form {
margin: 20px auto;
padding: 20px;
border: 1px solid #ccc;
max-width: 400px;
}
input[type="file"] {
margin-bottom: 10px;
}
.image-container {
display: flex;
justify-content: center;
align-items: flex-start;
}
.image-column {
flex: 1;
padding: 10px;
}
img {
max-width: 100%;
max-height: 500px;
}
</style>
</head>
<body>
<h1>Upload an Image</h1>
<form method="POST" enctype="multipart/form-data">
<input type="file" name="image">
<input type="submit" value="Upload">
</form>
<div class="image-container">
<div class="image-column">
{% if image1 %}
<h2>YOLO model Image:</h2>
<img src="{{ image1 }}" alt="YOLO Annotated Image">
{% endif %}
</div>
<div class="image-column">
{% if image2 %}
<h2>DETR Model Image:</h2>
<img src="{{ image2 }}" alt="DETR Annotated Image">
{% endif %}
</div>
</div>
</body>
</html>