Spaces:
Runtime error
Runtime error
| <html> | |
| <head> | |
| <title>Text Classification</title> | |
| </head> | |
| <body> | |
| <h1>Text Classification</h1> | |
| <form action="/predict" method="post"> | |
| <textarea name="text" rows="4" cols="50" placeholder="Enter text to classify"></textarea> | |
| <br><br> | |
| <input type="submit" value="Classify"> | |
| </form> | |
| {% if text %} | |
| <h2>Input Text:</h2> | |
| <p>{{ text }}</p> | |
| <h2>Class Probabilities:</h2> | |
| <p>Class 0: {{ probabilities[0] }}</p> | |
| <p>Class 1: {{ probabilities[1] }}</p> | |
| {% endif } | |
| </body> | |
| </html> | |