-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (30 loc) · 1.37 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
<script src="script.js"></script>
<title>File Upload Form</title>
</head>
<body>
<h1>비슷한 옷 찾기</h1>
<form action="http://127.0.0.1:5000/compare" method="post" enctype="multipart/form-data">
<input type="file" name="fileToUpload" id="fileToUpload" accept=".jpg, .jpeg, .png" onchange="previewFile()">
<img id="previewImg" src="" alt="Image preview" style="max-width: 500px; max-height: 500px;">
<input type="submit" value="이거 누구 옷이야?">
</form>
<h1>옷 등록하기</h1>
<form action="http://127.0.0.1:5000/upload" method="post" enctype="multipart/form-data">
<label for="fileToUpload">Select a file:</label>
<input type="file" name="fileToUpload" id="fileToUpload2" accept="image/*" onchange="previewFile2()"><br><br>
<img id="previewImg2" src="" alt="Image preview" style="max-width: 500px; max-height: 500px;">
<label for="nameSelect">Select name:</label>
<select name="nameSelect" id="nameSelect">
<option value="엄마">엄마</option>
<option value="아빠">아빠</option>
<option value="아들">아들</option>
<option value="딸">딸</option>
</select><br><br>
<input type="submit" value="Upload Image">
</form>
</body>
</html>