| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Sentiment Classification</title> | |
| <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1 class="text-center mb-3">Sentiment Classification</h1> | |
| <form method="POST" class="row justify-content-center"> | |
| <div class="col-md-4"> | |
| <input type="text" name="user_input" class="form-control" placeholder="Enter your input..."> | |
| </div> | |
| <div class="col-md-2 mt-3"> | |
| <button type="submit" class="btn btn-primary">Submit</button> | |
| </div> | |
| </form> | |
| {% if user_input %} | |
| <h2 class="mt-5 text-center">Response:</h2> | |
| <p class="text-center">{{ response }}</p> | |
| {% endif %} | |
| </div> | |
| </body> | |
| </html> | |