Spaces:
Runtime error
Runtime error
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Hugging Face Sentiment App</title> | |
| <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>Sentiment Analyzer</h1> | |
| <form method="post"> | |
| <textarea name="text" rows="5" placeholder="Enter text here..."></textarea><br> | |
| <button type="submit">Analyze</button> | |
| </form> | |
| {% if result %} | |
| <div class="result"> | |
| <p><strong>Label:</strong> {{ result.label }}</p> | |
| <p><strong>Score:</strong> {{ result.score | round(2) }}</p> | |
| </div> | |
| {% endif %} | |
| </div> | |
| </body> | |
| </html> | |