Spaces:
Sleeping
Sleeping
Commit
·
9af5885
1
Parent(s):
66f3100
html_doc
Browse files- index.html +20 -0
index.html
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- templates/index.html -->
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html>
|
| 4 |
+
<head>
|
| 5 |
+
<title>Machine Learning Web App</title>
|
| 6 |
+
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
|
| 7 |
+
</head>
|
| 8 |
+
<body>
|
| 9 |
+
<h1>Machine Learning Web App</h1>
|
| 10 |
+
<form method="POST">
|
| 11 |
+
<label for="user_input">Enter a phrase:</label>
|
| 12 |
+
<input type="text" id="user_input" name="user_input" required>
|
| 13 |
+
<input type="submit" value="Submit">
|
| 14 |
+
</form>
|
| 15 |
+
{% if user_input %}
|
| 16 |
+
<p>You entered: {{ user_input }}</p>
|
| 17 |
+
<p>Model output: {{ output }}</p>
|
| 18 |
+
{% endif %}
|
| 19 |
+
</body>
|
| 20 |
+
</html>
|