Create templates/index.html
Browse files- templates/index.html +39 -0
templates/index.html
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="pt-BR">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>GEM - Separador de Áudio</title>
|
7 |
+
<style>
|
8 |
+
body { font-family: sans-serif; background-color: #f0f2f5; color: #333; max-width: 600px; margin: 40px auto; padding: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
|
9 |
+
h1, h2 { text-align: center; color: #1c1e21; }
|
10 |
+
form { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 30px; }
|
11 |
+
input[type="file"] { border: 1px solid #ddd; padding: 10px; border-radius: 5px; width: 100%; }
|
12 |
+
input[type="submit"] { background-color: #0d6efd; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; }
|
13 |
+
input[type="submit"]:hover { background-color: #0b5ed7; }
|
14 |
+
.results { text-align: center; }
|
15 |
+
a { display: block; background-color: #28a745; color: white; text-decoration: none; padding: 12px; margin: 10px auto; border-radius: 5px; width: 80%; }
|
16 |
+
a:hover { background-color: #218838; }
|
17 |
+
.error { color: #dc3545; text-align: center; }
|
18 |
+
</style>
|
19 |
+
</head>
|
20 |
+
<body>
|
21 |
+
<h1>🎧 GEM – Separador de Áudio Inteligente</h1>
|
22 |
+
<form method="post" enctype="multipart/form-data">
|
23 |
+
<input type="file" name="audiofile" accept="audio/*" required>
|
24 |
+
<input type="submit" value="Separar Áudio">
|
25 |
+
</form>
|
26 |
+
|
27 |
+
{% if error %}
|
28 |
+
<p class="error">{{ error }}</p>
|
29 |
+
{% endif %}
|
30 |
+
|
31 |
+
{% if vocals_path %}
|
32 |
+
<div class="results">
|
33 |
+
<h2>Download dos Arquivos Separados</h2>
|
34 |
+
<a href="{{ url_for('download_file', filename=vocals_path) }}">Baixar Vocais (vocals.wav)</a>
|
35 |
+
<a href="{{ url_for('download_file', filename=accompaniment_path) }}">Baixar Instrumental (accompaniment.wav)</a>
|
36 |
+
</div>
|
37 |
+
{% endif %}
|
38 |
+
</body>
|
39 |
+
</html>
|