my_space / index.html
khadija3818's picture
Create index.html
492d9f6
raw
history blame contribute delete
570 Bytes
<!DOCTYPE html>
<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>