-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtotrain.html
94 lines (85 loc) · 3.96 KB
/
totrain.html
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
{% extends "layout1.html" %}
{% block stuff %}
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- <h5 class="dark">Train your model with data stored from the database:</h5>
<form method="post" action="{{ url_for('to_train') }}" enctype="multipart/form-data">
<div class ="btn-group">
Select starting timestamp:
<select name="selectedTimestamp" class="btn btn-danger dropdown-toggle">
<button type="submit" class="btn btn-danger dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
</button>
<ul class="dropdown-menu">
{% for value in data %}
<option value="{{ value }}" ><li>{{ value }}</li></option>
{% endfor %}
</select>
</ul>
</div>
</form>
<form method="post" action="{{ url_for('to_train') }}" enctype="multipart/form-data">
<div class ="btn-group">
Select ending timestamp:
<select name="selectedTimestamp1" class="btn btn-danger dropdown-toggle">
<button type="submit" class="btn btn-danger dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
</button>
<ul class="dropdown-menu">
{% for value in data %}
<option value="{{ value }}" ><li>{{ value }}</li></option>
{% endfor %}
</select>
</ul>
</div>
</form> -->
<form method="post" action="{{ url_for('to_train') }}" enctype="multipart/form-data">
<div class="btn-group">
<select name="selected_option" class="btn btn-danger dropdown-toggle">
<option value="" disabled selected>Select starting timestamp:</option>
{% for value in data %}
<option value="{{ value }}">{{ value }}</option>
{% endfor %}
</select>
<select name="selected_option1" class="btn btn-danger dropdown-toggle">
<option value="" disabled selected>Select ending timestamp:</option>
{% for value in data %}
<option value="{{ value }}">{{ value }}</option>
{% endfor %}
</select>
<button type="submit" class="btn btn-danger">Submit</button>
</div>
</form>
<form method="post" action="{{ url_for('predict_results') }}" enctype="multipart/form-data">
<button class="btn btn-outline-info" type="submit">Check the training results</button>
</form>
<form method="post" action="{{ url_for('home') }}" enctype="multipart/form-data">
<button class="btn btn-outline-info" type="submit">Back to home</button>
</form>
<!-- <form method="post" action="{{ url_for('to_train') }}" enctype="multipart/form-data">
<div class="btn-group">
<select name="selectedTimestamp" class="btn btn-danger dropdown-toggle">
<option value="" disabled selected>Select starting timestamp</option>
{% for value in data %}
<option value="{{ value }}">{{ value }}</option>
{% endfor %}
</select>
<button type="submit" class="btn btn-danger">Submit</button>
</div>
</form>
-->
<!-- I'm trying to add an infinite scroll functionality here to prevent the page from lagging-->
<!-- <script type="text/javascript">
$(window).scroll(()=>{
var current_y = $(window).scrollTop();
var window_height = $(window).height();
var document_height = $(document).height();
if(current_y + window_height == document_height){
// console.log('bottom of the page');
// alert('End of the page');
}
// console.log('current_y:',current_y,'window_height:',window_height,'document_height',document_height);
});
function downloadContent(index,limit){
$.get('127.0.0.1:5000')
}
</script> -->
{% endblock %}