vverma commited on
Commit ·
07317d3
1
Parent(s): 7d5d5aa
HTML form
Browse files- templates/form.html +7 -0
templates/form.html
CHANGED
|
@@ -2,6 +2,10 @@
|
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
<title>LaTeX Image Parser</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
</head>
|
| 6 |
<body>
|
| 7 |
<h1>Upload an Image</h1>
|
|
@@ -12,7 +16,10 @@
|
|
| 12 |
|
| 13 |
{% if result %}
|
| 14 |
<h2>Prediction:</h2>
|
|
|
|
| 15 |
<pre>{{ result }}</pre>
|
|
|
|
|
|
|
| 16 |
{% endif %}
|
| 17 |
</body>
|
| 18 |
</html>
|
|
|
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
<title>LaTeX Image Parser</title>
|
| 5 |
+
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
| 6 |
+
<script id="MathJax-script" async
|
| 7 |
+
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
|
| 8 |
+
</script>
|
| 9 |
</head>
|
| 10 |
<body>
|
| 11 |
<h1>Upload an Image</h1>
|
|
|
|
| 16 |
|
| 17 |
{% if result %}
|
| 18 |
<h2>Prediction:</h2>
|
| 19 |
+
<p>Raw LaTeX:</p>
|
| 20 |
<pre>{{ result }}</pre>
|
| 21 |
+
<p>Rendered LaTeX:</p>
|
| 22 |
+
<p>$$ {{ result }} $$</p>
|
| 23 |
{% endif %}
|
| 24 |
</body>
|
| 25 |
</html>
|