Spaces:
Runtime error
Runtime error
imseldrith
commited on
Commit
•
a0b184e
1
Parent(s):
625fdcb
Update templates/index.html
Browse files- templates/index.html +54 -48
templates/index.html
CHANGED
@@ -1,52 +1,58 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
</div>
|
25 |
-
|
26 |
-
<label for="url">Enter Video URL:</label>
|
27 |
-
<input type="text" class="form-control" id="url" name="url" placeholder="Enter Video URL">
|
28 |
-
</div>
|
29 |
-
<div class="form-group" id="file-group" style="display: none;">
|
30 |
-
<label for="file">Upload Video File:</label>
|
31 |
-
<input type="file" class="form-control-file" id="file" name="file">
|
32 |
-
</div>
|
33 |
-
<button type="submit" class="btn btn-primary">Dub Video</button>
|
34 |
-
</form>
|
35 |
-
</div>
|
36 |
-
<script>
|
37 |
-
document.getElementById("source").addEventListener("change", function() {
|
38 |
-
var source = this.value;
|
39 |
-
if (source === "url") {
|
40 |
-
document.getElementById("url-group").style.display = "block";
|
41 |
-
document.getElementById("file-group").style.display = "none";
|
42 |
-
} else if (source === "file") {
|
43 |
-
document.getElementById("url-group").style.display = "none";
|
44 |
-
document.getElementById("file-group").style.display = "block";
|
45 |
-
} else {
|
46 |
-
document.getElementById("url-group").style.display = "none";
|
47 |
-
document.getElementById("file-group").style.display = "none";
|
48 |
-
}
|
49 |
-
});
|
50 |
-
</script>
|
51 |
-
</body>
|
52 |
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
+
<head>
|
4 |
+
<title>Video Dubbing App</title>
|
5 |
+
<style>
|
6 |
+
.container {
|
7 |
+
display: flex;
|
8 |
+
flex-direction: column;
|
9 |
+
align-items: center;
|
10 |
+
margin-top: 50px;
|
11 |
+
}
|
12 |
+
.form {
|
13 |
+
display: flex;
|
14 |
+
flex-direction: column;
|
15 |
+
align-items: center;
|
16 |
+
background-color: #f2f2f2;
|
17 |
+
padding: 30px;
|
18 |
+
border-radius: 10px;
|
19 |
+
box-shadow: 2px 2px 5px #888888;
|
20 |
+
}
|
21 |
+
h2 {
|
22 |
+
margin-bottom: 30px;
|
23 |
+
}
|
24 |
+
input[type="file"] {
|
25 |
+
margin-bottom: 20px;
|
26 |
+
}
|
27 |
+
input[type="submit"] {
|
28 |
+
margin-top: 20px;
|
29 |
+
padding: 10px 20px;
|
30 |
+
background-color: #4CAF50;
|
31 |
+
color: white;
|
32 |
+
border: none;
|
33 |
+
border-radius: 5px;
|
34 |
+
cursor: pointer;
|
35 |
+
}
|
36 |
+
input[type="submit"]:hover {
|
37 |
+
background-color: #3e8e41;
|
38 |
+
}
|
39 |
+
.or {
|
40 |
+
margin-top: 20px;
|
41 |
+
margin-bottom: 20px;
|
42 |
+
font-size: 16px;
|
43 |
+
text-align: center;
|
44 |
+
}
|
45 |
+
</style>
|
46 |
+
</head>
|
47 |
+
<body>
|
48 |
+
<div class="container">
|
49 |
+
<h2>Dub Your Videos</h2>
|
50 |
+
<form class="form" action="/dub" method="post" enctype="multipart/form-data">
|
51 |
+
<input type="file" name="video">
|
52 |
+
<div class="or">OR</div>
|
53 |
+
<input type="text" name="url" placeholder="Enter video URL">
|
54 |
+
<input type="submit" value="Dub Video">
|
55 |
+
</form>
|
56 |
</div>
|
57 |
+
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
</html>
|