Swathi6 commited on
Commit
e08ce94
·
verified ·
1 Parent(s): c074018

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +24 -0
templates/index.html ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Hugging Face Sentiment App</title>
6
+ <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
7
+ </head>
8
+ <body>
9
+ <div class="container">
10
+ <h1>Sentiment Analyzer</h1>
11
+ <form method="post">
12
+ <textarea name="text" rows="5" placeholder="Enter text here..."></textarea><br>
13
+ <button type="submit">Analyze</button>
14
+ </form>
15
+
16
+ {% if result %}
17
+ <div class="result">
18
+ <p><strong>Label:</strong> {{ result.label }}</p>
19
+ <p><strong>Score:</strong> {{ result.score | round(2) }}</p>
20
+ </div>
21
+ {% endif %}
22
+ </div>
23
+ </body>
24
+ </html>