-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·31 lines (31 loc) · 1.43 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
<!doctype html>
<head>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<title>PetaVision Image Classifier</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="stylesheets/styles.css">
<script type="text/javascript">
function inputCheck(inputName)
{if (document.getElementById(inputName).value == ""){return false;};}
</script>
</head>
<body>
<div><h1><a href="https://petavision.github.io/"><img height=40 src="images/petavisionLogo.png" alt="PetaVision" style="margin-right:20px"></a>PetaVision</h1></div>
<div><h2>Image Classifier</h2></div>
<div>
<form id="fileUpload" action="upload.php" method="post" enctype="multipart/form-data">
<h3>Select Model:</h3>
<select name="model">
<option value="128X128_TAP_150">Tap 150 Deep Semi-Supervised Five Categories</option>
</select>
<br><br><h3>Select image or video to upload:</h3>
<input type="file" name="fileToUpload" id="fileToUpload" accept="image/*, video/*"/>
<input type="submit" value="Upload File" name="fileSubmit" onClick="return inputCheck('fileToUpload')"/>
<br><br><h3>Or provide image URL:</h3>
<input type="text" name="urlToUpload" id="urlToUpload" size="38"/>
<input type="submit" value="Submit URL" name="urlSubmit" onClick="return inputCheck('urlToUpload')"/>
</form>
</div>
</body>
</html>