Spaces:
Paused
Paused
Update templates/index.html
Browse files- templates/index.html +5 -2
templates/index.html
CHANGED
@@ -5,8 +5,11 @@
|
|
5 |
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
6 |
</head>
|
7 |
<body>
|
8 |
-
<h1>
|
9 |
-
<p>Upload an image to detect objects
|
|
|
|
|
|
|
10 |
<form method="POST" enctype="multipart/form-data" action="/upload">
|
11 |
<input type="file" name="file" accept="image/*">
|
12 |
<input type="submit" value="Detect Objects">
|
|
|
5 |
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
6 |
</head>
|
7 |
<body>
|
8 |
+
<h1>Object Detection with DETR</h1>
|
9 |
+
<p>Upload an image to detect objects.</p>
|
10 |
+
{% if error %}
|
11 |
+
<p style="color: red;">{{ error }}</p>
|
12 |
+
{% endif %}
|
13 |
<form method="POST" enctype="multipart/form-data" action="/upload">
|
14 |
<input type="file" name="file" accept="image/*">
|
15 |
<input type="submit" value="Detect Objects">
|