imseldrith commited on
Commit
a0b184e
1 Parent(s): 625fdcb

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +54 -48
templates/index.html CHANGED
@@ -1,52 +1,58 @@
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>
 
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>