karan99300 commited on
Commit
44e8588
1 Parent(s): bec0bea

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +21 -0
templates/index.html CHANGED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Image Classifier</title>
7
+ </head>
8
+ <body>
9
+ <h1>Image Classifier</h1>
10
+ <form method="post">
11
+ <label for="image_url">Enter Image URL:</label><br>
12
+ <input type="text" id="image_url" name="image_url"><br><br>
13
+ <input type="submit" value="Submit">
14
+ </form>
15
+ {% if predicted_class %}
16
+ <h2>Predicted Class:</h2>
17
+ <p>{{ predicted_class }}</p>
18
+ <img src="{{ image_url }}" alt="Image">
19
+ {% endif %}
20
+ </body>
21
+ </html>