Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollopy-tulane authored Apr 29, 2024
1 parent 234319e commit ff74708
Showing 1 changed file with 29 additions and 36 deletions.
65 changes: 29 additions & 36 deletions nlp/app/templates/myform.html
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">&lt;h1&gt;Milwaukee Bucks Reddit Comment Classifier&lt;/h1&gt;</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">&lt;div&gt;</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">&lt;/div&gt;</span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">&lt;div&gt;</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>&lt;div&gt;</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>&lt;/div&gt;</span></p>
<p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>{% endfor %}</span></p>
<p class="p1"><span class="s1">&lt;/div&gt;</span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">&lt;div&gt;</span></p>
<p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>{{ form.submit() }}</span></p>
<p class="p1"><span class="s1">&lt;/div&gt;</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>

0 comments on commit ff74708

Please sign in to comment.