File size: 1,376 Bytes
1a82bcb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>

<head>
    <title>Active Learning POC</title>

    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/styles.css') }}">

    <style>
        input[type=file] {
            width: 350px;
            max-width: 100%;
            color: #444;
            padding: 5px;
            background: #fff;
            border-radius: 10px;
            border: 1px solid #555;
        }

        input[type=number] {
            width: 100px;
            max-width: 100%;
            color: #444;
            padding: 5px;
            background: #fff;
            border-radius: 10px;
            border: 1px solid #555;
        }
    </style>
</head>

<body>
    <h1>Active Learning POC</h1>
    <form method="POST" enctype="multipart/form-data">
        <h3>Upload Data File (CSV)</h3>
        <input type="file" name="data_file" accept=".csv" required>

        <h3>Upload Labels File (CSV)</h3>
        <input type="file" name="labels_file" accept=".csv" required>
        <table style="border-style: hidden">
            <tr>
                <td style="width: 200px;">
                    Active Learning Sample
                </td>
                <td><input type="number" name="query_number" required></td>
            </tr>
        </table>


        <button type="submit">Start Labeling</button>
    </form>
</body>

</html>