khadija3818 commited on
Commit
492d9f6
1 Parent(s): 3b211ba

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +21 -0
index.html ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Text Classification</title>
5
+ </head>
6
+ <body>
7
+ <h1>Text Classification</h1>
8
+ <form action="/predict" method="post">
9
+ <textarea name="text" rows="4" cols="50" placeholder="Enter text to classify"></textarea>
10
+ <br><br>
11
+ <input type="submit" value="Classify">
12
+ </form>
13
+ {% if text %}
14
+ <h2>Input Text:</h2>
15
+ <p>{{ text }}</p>
16
+ <h2>Class Probabilities:</h2>
17
+ <p>Class 0: {{ probabilities[0] }}</p>
18
+ <p>Class 1: {{ probabilities[1] }}</p>
19
+ {% endif }
20
+ </body>
21
+ </html>