generated from tulane-cmps6730/sample-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
234319e
commit ff74708
Showing
1 changed file
with
29 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,34 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<!-- my-form.html --> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta http-equiv="Content-Style-Type" content="text/css"> | ||
<title></title> | ||
<meta name="Generator" content="Cocoa HTML Writer"> | ||
<meta name="CocoaVersion" content="2299.4"> | ||
<style type="text/css"> | ||
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; color: #000000; -webkit-text-stroke: #ffffff; background-color: #000000; background-color: rgba(0, 0, 0, 0)} | ||
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; color: #000000; -webkit-text-stroke: #ffffff; background-color: #000000; background-color: rgba(0, 0, 0, 0); min-height: 17.0px} | ||
span.s1 {font-kerning: none} | ||
</style> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Prediction Form</title> | ||
</head> | ||
<body> | ||
<p class="p1"><span class="s1">{% extends "base.html" %}</span></p> | ||
<p class="p1"><span class="s1">{% block content %}</span></p> | ||
<p class="p1"><span class="s1"><h1>Milwaukee Bucks Reddit Comment Classifier</h1></span></p> | ||
<p class="p2"><span class="s1"></span><br></p> | ||
<p class="p1"><span class="s1">{{ form.hidden_tag() }}</span></p> | ||
<p class="p2"><span class="s1"></span><br></p> | ||
<p class="p1"><span class="s1"><div></span></p> | ||
<p class="p1"><span class="s1"><span class="Apple-converted-space"> </span>{{ form.input_field.label }} {{ form.input_field(size=32) }}</span></p> | ||
<p class="p1"><span class="s1"></div></span></p> | ||
<p class="p2"><span class="s1"></span><br></p> | ||
<p class="p1"><span class="s1"><div></span></p> | ||
<p class="p1"><span class="s1"><span class="Apple-converted-space"> </span>{{ form.model_choice.label }}</span></p> | ||
<p class="p1"><span class="s1"><span class="Apple-converted-space"> </span>{% for subfield in form.model_choice %}</span></p> | ||
<p class="p1"><span class="s1"><span class="Apple-converted-space"> </span><div></span></p> | ||
<p class="p1"><span class="s1"><span class="Apple-converted-space"> </span>{{ subfield }} {{ subfield.label }}</span></p> | ||
<p class="p1"><span class="s1"><span class="Apple-converted-space"> </span></div></span></p> | ||
<p class="p1"><span class="s1"><span class="Apple-converted-space"> </span>{% endfor %}</span></p> | ||
<p class="p1"><span class="s1"></div></span></p> | ||
<p class="p2"><span class="s1"></span><br></p> | ||
<p class="p1"><span class="s1"><div></span></p> | ||
<p class="p1"><span class="s1"><span class="Apple-converted-space"> </span>{{ form.submit() }}</span></p> | ||
<p class="p1"><span class="s1"></div></span></p> | ||
<p class="p2"><span class="s1"></span><br></p> | ||
<p class="p1"><span class="s1">{% endblock %}</span></p> | ||
<h1>Bucks in 6: The MKEBucks Subreddit Comment Prediction! </h1> | ||
<form method="POST"> | ||
{{ form.csrf_token }} | ||
<div> | ||
{{ form.input_field.label }} | ||
{{ form.input_field }} | ||
</div> | ||
<div> | ||
{{ form.model_choice.label }} | ||
{% for choice in form.model_choice %} | ||
<label>{{ choice }}</label> | ||
{% endfor %} | ||
</div> | ||
<div> | ||
{{ form.submit(class="btn btn-primary") }} | ||
</div> | ||
</form> | ||
{% if prediction %} | ||
<h2>Prediction:</h2> | ||
<p>Label: {{ prediction }}</p> | ||
<p>Confidence: {{ confidence }}%</p> | ||
{% endif %} | ||
</body> | ||
</html> |