Spaces:
Paused
Paused
Commit
·
a3e4b35
1
Parent(s):
f29706a
Update templates/index.html
Browse files- templates/index.html +52 -1
templates/index.html
CHANGED
|
@@ -1 +1,52 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>Video Dubbing App</title>
|
| 6 |
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
| 7 |
+
<style>
|
| 8 |
+
.container {
|
| 9 |
+
margin-top: 50px;
|
| 10 |
+
}
|
| 11 |
+
</style>
|
| 12 |
+
</head>
|
| 13 |
+
<body>
|
| 14 |
+
<div class="container">
|
| 15 |
+
<h1 class="text-center">Video Dubbing App</h1>
|
| 16 |
+
<form action="{{ url_for('dub') }}" method="post">
|
| 17 |
+
<div class="form-group">
|
| 18 |
+
<label for="source">Select Video Source:</label>
|
| 19 |
+
<select class="form-control" id="source" name="source" required>
|
| 20 |
+
<option value="">--- Select ---</option>
|
| 21 |
+
<option value="url">URL</option>
|
| 22 |
+
<option value="file">File</option>
|
| 23 |
+
</select>
|
| 24 |
+
</div>
|
| 25 |
+
<div class="form-group" id="url-group" style="display: none;">
|
| 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>
|