-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
113 lines (112 loc) · 3.55 KB
/
index.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<html>
<head>
<title>Skin Cancer Detector</title>
<link
href="https://fonts.googleapis.com/css?family=Nunito"
rel="stylesheet"
/>
<link rel="stylesheet" type="text/css" href="css/app.css" />
<link rel="stylesheet" href="css/w3.css" />
<link rel="stylesheet" href="css/woza.css" />
<script type="text/javascript" src="js/target_classes.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script>
<script
type="text/javascript"
src="https://code.jquery.com/jquery-2.1.1.min.js"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.6.0/chart.min.js"></script>
<script type="text/javascript" src="js/mobile-net.js"></script>
</head>
<body>
<!-- Top Bar -->
<div class="w3-center w3-margin-top">
<p class="space-letters">
<a class="w3-small w3-hover-text-deep-orange text-color" href="faq.html"
><b>About</b></a
>
||
<a
class="w3-small w3-hover-text-deep-orange text-color"
href="https://github.com/IndraP24/Skin-Cancer-Detector"
>
<b>GitHub Repo</b></a
>
||
<a
class="w3-small w3-hover-text-deep-orange text-color"
href="https://www.kaggle.com/indrashispaul/using-mobilenet-keras-tfjs-web-app/notebook"
>
<b>Kaggle Notebook</b></a
>
</p>
</div>
<div class="container">
<div class="mobilenet-demo-container">
<h1>Skin Cancer Detector</h1>
<div class="demo-wrapper">
<div>
<button id="load-button" class="input-button" onclick="loadModel()">
Load Model
</button>
<button
id="demo-image-button"
class="input-button"
onclick="loadDemoImage()"
>
Demo Image
</button>
<label for="select-file-image" class="input-button">
Upload Image
</label>
<input
id="select-file-image"
type="file"
onchange="loadFile(event)"
style="display: none"
/>
<div
id="progress-box"
style="display: none; width: 100% !important"
>
<img src="assets/loading.gif" id="demo-load" width="100px" />
<p style="color: white">Loading mobilenet model..</p>
</div>
</div>
<div>
<button
id="predict-button"
class="input-button predict-button"
onclick="predButton()"
>
Predict
</button>
</div>
</div>
<div class="demo-output">
<div class="out-box" id="select-file-box" style="display: none">
<img id="test-image" height="300px" width="450px" margin="2px" />
</div>
<div class="out-box" id="predict-box" style="display: none">
<p id="prediction"></p>
<br />
<p>
<b
style="
color: #c2c2c2 !important;
font-style: italic;
font-weight: 100;
font-size: 18px;
"
>Top-3 Predictions</b
>
</p>
<ul id="predict-list"></ul>
</div>
</div>
<div class="chart">
<canvas id="chart-box" style="display: none" height="120px"></canvas>
</div>
</div>
</div>
</body>
</html>