File size: 2,830 Bytes
fa53be0
 
 
 
 
69d37ef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa53be0
 
 
 
 
69d37ef
 
 
 
 
 
fa53be0
fafbcc3
fa53be0
 
69d37ef
fa53be0
4faaa69
fa53be0
69d37ef
fa53be0
4faaa69
fa53be0
 
 
 
fafbcc3
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html>
<head>
    <title>Experiment</title>
    <style>
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: 'Roboto', sans-serif;
        }
        .container {
            display: flex;
            flex-direction: column;
            height: 100vh;
            width: 100vw;
            background-color: #ffffff;
        }
        .header {
            padding: 20px;
            background-color: #f0f0f0;
            text-align: center;
        }
        h1 {
            margin: 0;
            font-size: 24px;
        }
        .task-description {
            padding: 10px 20px;
            background-color: #e0e0e0;
            text-align: center;
        }
        .visualization-container {
            flex-grow: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }
        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        .buttons {
            display: flex;
            justify-content: space-around;
            padding: 20px;
            background-color: #f0f0f0;
        }
        button {
            background-color: #4CAF50;
            color: white;
            padding: 15px 30px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 18px;
            transition: background-color 0.3s ease;
        }
        button:hover {
            background-color: #45a049;
        }
        button.reject {
            background-color: #f44336;
        }
        button.reject:hover {
            background-color: #e53935;
        }
    </style>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>{{ sample_id + 1 }} / 10</h1>
        </div>
        <div class="task-description">
            <p><strong>Task description:</strong> {{ statement }}</p>
        </div>
        <div class="visualization-container">
            <iframe src="{{ visualization }}"></iframe>
        </div>
        <div class="buttons">
            <form action="{{ url_for('feedback') }}" method="post">
                <input type="hidden" name="username" value="{{ username }}">
                <button type="submit" name="prediction" value="TRUE">Predict TRUE</button>
            </form>
            <form action="{{ url_for('feedback') }}" method="post">
                <input type="hidden" name="username" value="{{ username }}">
                <button type="submit" name="prediction" value="FALSE" class="reject">Predict FALSE</button>
            </form>
        </div>
    </div>
</body>
</html>