imseldrith commited on
Commit
e4148a8
·
1 Parent(s): 1690e6e

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +46 -0
templates/index.html ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Video Dubbing Application</title>
6
+ </head>
7
+ <body>
8
+ <h1>Video Dubbing Application</h1>
9
+ <form action="/" method="post" enctype="multipart/form-data">
10
+ <div>
11
+ <label for="video_file">Upload Video:</label>
12
+ <input type="file" id="video_file" name="video_file">
13
+ </div>
14
+ <div>
15
+ <label for="video_url">Import Video URL:</label>
16
+ <input type="url" id="video_url" name="video_url">
17
+ </div>
18
+ <div>
19
+ <label for="language">Language:</label>
20
+ <select id="language" name="language">
21
+ <option value="hi">Hindi</option>
22
+ </select>
23
+ </div>
24
+ <div>
25
+ <input type="submit" value="Dub Video">
26
+ </div>
27
+ </form>
28
+ {% if video_url %}
29
+ <div>
30
+ <p>Dubbing Progress:</p>
31
+ <div class="progress">
32
+ <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>
33
+ </div>
34
+ </div>
35
+ {% endif %}
36
+ {% if result %}
37
+ <div>
38
+ <p>Dubbed Video:</p>
39
+ <video controls>
40
+ <source src="{{ result }}" type="video/mp4">
41
+ Your browser does not support the video tag.
42
+ </video>
43
+ </div>
44
+ {% endif %}
45
+ </body>
46
+ </html>