File size: 598 Bytes
9af5885
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!-- templates/index.html -->
<!DOCTYPE html>
<html>
<head>
    <title>Machine Learning Web App</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <h1>Machine Learning Web App</h1>
    <form method="POST">
        <label for="user_input">Enter a phrase:</label>
        <input type="text" id="user_input" name="user_input" required>
        <input type="submit" value="Submit">
    </form>
    {% if user_input %}
    <p>You entered: {{ user_input }}</p>
    <p>Model output: {{ output }}</p>
    {% endif %}
</body>
</html>