amaanadeen commited on
Commit
a161996
·
1 Parent(s): d6e710b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +35 -18
index.html CHANGED
@@ -1,19 +1,36 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!DOCTYPE html>
2
+ <html >
3
+ <!--From https://codepen.io/frytyler/pen/EGdtg-->
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <title>ML API</title>
7
+ <link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
8
+ <link href='https://fonts.googleapis.com/css?family=Arimo' rel='stylesheet' type='text/css'>
9
+ <link href='https://fonts.googleapis.com/css?family=Hind:300' rel='stylesheet' type='text/css'>
10
+ <link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
11
+
12
+ </head>
13
+
14
+ <body>
15
+ <div class="login">
16
+ <h1>Flower Class Prediction</h1>
17
+
18
+ <!-- Main Input For Receiving Query to our ML -->
19
+ <form action="{{ url_for('predict')}}"method="post">
20
+ <input type="text" name="Sepal_Length" placeholder="Sepal_Length" required="required" />
21
+ <input type="text" name="Sepal_Width" placeholder="Sepal_Width" required="required" />
22
+ <input type="text" name="Petal_Length" placeholder="Petal_Length" required="required" />
23
+ <input type="text" name="Petal_Width" placeholder="Petal_Width" required="required" />
24
+
25
+ <button type="submit" class="btn btn-primary btn-block btn-large">Predict</button>
26
+ </form>
27
+
28
+ <br>
29
+ <br>
30
+ {{ prediction_text }}
31
+
32
+ </div>
33
+
34
+
35
+ </body>
36
+ </html>