salomonsky commited on
Commit
693e2f5
1 Parent(s): 84c807e

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +75 -0
index.html ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Hor贸scopo con Inteligencia Artificial v2.1</title>
5
+ <style>
6
+ body {
7
+ font-family: Arial, sans-serif;
8
+ margin: 20px;
9
+ }
10
+ h1 {
11
+ text-align: center;
12
+ }
13
+ form {
14
+ max-width: 400px;
15
+ margin: 0 auto;
16
+ }
17
+ label {
18
+ display: block;
19
+ margin-top: 10px;
20
+ }
21
+ input[type="text"],
22
+ input[type="submit"] {
23
+ width: 100%;
24
+ padding: 10px;
25
+ margin-top: 5px;
26
+ }
27
+ #video {
28
+ width: 100%;
29
+ max-width: 800px;
30
+ margin: 20px auto;
31
+ display: none;
32
+ }
33
+ #error-message {
34
+ color: red;
35
+ font-weight: bold;
36
+ }
37
+ </style>
38
+ </head>
39
+ <body>
40
+ <h1>Hor贸scopo con Inteligencia Artificial v2.1</h1>
41
+ <form method="POST">
42
+ <label for="name">Nombre:</label>
43
+ <input type="text" id="name" name="name" placeholder="Ingresa tu nombre completo" required>
44
+
45
+ <label for="horoscope_type">Tipo de hor贸scopo:</label>
46
+ <select id="horoscope_type" name="horoscope_type" required>
47
+ <option value="Egipcio">Egipcio</option>
48
+ <option value="Griego">Griego</option>
49
+ <option value="Maya">Maya</option>
50
+ <option value="Chino">Chino</option>
51
+ <option value="Celta">Celta</option>
52
+ </select>
53
+
54
+ <input type="submit" value="Generar">
55
+ </form>
56
+
57
+ {% if video_path %}
58
+ <video id="video" controls>
59
+ <source src="{{ video_path }}" type="video/mp4">
60
+ Your browser does not support the video tag.
61
+ </video>
62
+ {% endif %}
63
+
64
+ {% if error_message %}
65
+ <p id="error-message">{{ error_message }}</p>
66
+ {% endif %}
67
+
68
+ <script>
69
+ var video = document.getElementById("video");
70
+ video.onloadeddata = function() {
71
+ video.style.display = "block";
72
+ };
73
+ </script>
74
+ </body>
75
+ </html>