DINGOLANI commited on
Commit
aa81da0
·
verified ·
1 Parent(s): 412ccc3

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +35 -0
templates/index.html ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Fashion Query Analyzer</title>
5
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
6
+ </head>
7
+ <body>
8
+ <div class="container mt-5">
9
+ <h1 class="mb-4">Fashion Product Query Analyzer</h1>
10
+
11
+ <form method="POST">
12
+ <div class="mb-3">
13
+ <input type="text" class="form-control" name="query"
14
+ placeholder="Enter your query (e.g., 'Gucci men’s perfume under 200AED')"
15
+ value="{{ query if query else '' }}">
16
+ </div>
17
+ <button type="submit" class="btn btn-primary">Analyze</button>
18
+ </form>
19
+
20
+ {% if result %}
21
+ <div class="mt-4">
22
+ <h3>Results:</h3>
23
+ <table class="table table-striped">
24
+ <tbody>
25
+ <tr><th>Brand</th><td>{{ result.Brand or 'Not detected' }}</td></tr>
26
+ <tr><th>Category</th><td>{{ result.Category or 'Not detected' }}</td></tr>
27
+ <tr><th>Gender</th><td>{{ result.Gender or 'Not detected' }}</td></tr>
28
+ <tr><th>Price</th><td>{{ result.Price or 'Not detected' }}</td></tr>
29
+ </tbody>
30
+ </table>
31
+ </div>
32
+ {% endif %}
33
+ </div>
34
+ </body>
35
+ </html>