chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{% macro render_field(field) %}
|
||||
<dt>{{ field.label }}
|
||||
<dd>{{ field(**kwargs)|safe }}
|
||||
{% if field.errors %}
|
||||
<ul class=errors>
|
||||
{% for error in field.errors %}
|
||||
<li>{{ error }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</dd>
|
||||
{% endmacro %}
|
||||
@@ -0,0 +1,32 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Movie Classification</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h3>Your movie review:</h3>
|
||||
<div>{{ content }}</div>
|
||||
|
||||
<h3>Prediction:</h3>
|
||||
<div>This movie review is <strong>{{ prediction }}</strong>
|
||||
(probability: {{ probability }}%).</div>
|
||||
|
||||
<div id='button'>
|
||||
<form action="/thanks" method="post">
|
||||
<input type=submit value='Correct' name='feedback_button'>
|
||||
<input type=submit value='Incorrect' name='feedback_button'>
|
||||
<input type=hidden value='{{ prediction }}' name='prediction'>
|
||||
<input type=hidden value='{{ content }}' name='review'>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id='button'>
|
||||
<form action="/">
|
||||
<input type=submit value='Submit another review'>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Movie Classification</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h2>Please enter your movie review:</h2>
|
||||
|
||||
{% from "_formhelpers.html" import render_field %}
|
||||
|
||||
<form method=post action="/results">
|
||||
<dl>
|
||||
{{ render_field(form.moviereview, cols='30', rows='10') }}
|
||||
</dl>
|
||||
<div>
|
||||
<input type=submit value='Submit review' name='submit_btn'>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Movie Classification</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h3>Thank you for your feedback!</h3>
|
||||
|
||||
<div id='button'>
|
||||
<form action="/">
|
||||
<input type=submit value='Submit another review'>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user