devil2810's picture
Update templates/index.html
d702141 verified
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>RoBERTa IMDb Sentiment — Professional</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="wrap">
<div class="card">
<h1>RoBERTa IMDb Sentiment Analyzer</h1>
<p class="subtitle">Fine-tuned on IMDb reviews — Professional Application</p>
<form method="post" action="/predict">
<textarea name="text" placeholder="Paste movie review or any text..." required>{{ input_text if input_text else '' }}</textarea>
<div class="btn-row">
<button type="submit" class="btn">Analyze Sentiment</button>
</div>
</form>
{% if result %}
<div class="result">
<label>Result:</label>
<div class="pill">{{ result }}</div>
</div>
{% endif %}
<div class="footer">Developer : <code>Rohit Chabara<br>Python Developer</code></div>
</div>
</div>
</body>
</html>