12 |
13 |
14 |
15 | Simple Text-Gen w/ OpenAI GPT-2
16 |
17 |
18 | {% block content %}
19 | {% for message in form.seed.errors %}
20 |
{{ message }}
21 | {% endfor %}
22 |
23 |
30 | {% endblock %}
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/deployment/templates/seeded.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 | {% block content %}
15 | {{ input|safe }}
16 | {% endblock %}
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/deployment/utils.py:
--------------------------------------------------------------------------------
1 | import re
2 |
3 |
4 | def header(text, color='black', gen_text=None):
5 | """Create an HTML header"""
6 |
7 | if gen_text:
8 | raw_html = f'