File size: 1,669 Bytes
43c7e13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Diamond Price Prediction</title>
  <style>

    body {

      background-color: #041C32;

      color: #ECB365;

      font-family: Arial, sans-serif;

      margin: 0;

      padding: 20px;

    }

    .container {

      max-width: 800px;

      margin: auto;

      background-color: #04293A;

      padding: 20px;

      border-radius: 8px;

    }

    h1 {

      color: #ECB365;

      text-align: center;

    }

    label {

      display: block;

      margin-top: 10px;

      color: #ECB365;

    }

    input, select {

      width: 100%;

      padding: 8px;

      margin-top: 5px;

      border: 1px solid #064663;

      border-radius: 4px;

      background-color: #064663;

      color: #ECB365;

      box-sizing: border-box;

    }

    .btn {

      margin-top: 20px;

      padding: 10px 15px;

      background-color: #ECB365;

      color: #041C32;

      border: none;

      border-radius: 4px;

      cursor: pointer;

      font-weight: bold;

    }

    .upload-section {

      margin-top: 20px;

      padding: 15px;

      border: 2px dashed #ECB365;

      text-align: center;

    }

  </style>
</head>
<body>
  <div class="container">
    <h1>Diamond Price Prediction</h1>
    <div class="upload-section">
      <h3>Upload CSV or Excel for Bulk Prediction</h3>
      <form action="{{ url_for('predict') }}" method="post" enctype="multipart/form-data">
        <input type="file" name="file" accept=".csv, .xlsx" required>
        <button type="submit" class="btn">Upload & Predict</button>
      </form>
    </div>
  </div>
</body>
</html>