Spaces:
Runtime error
Runtime error
dynamicmortal
commited on
Commit
•
66a26ce
1
Parent(s):
0f92461
Update templates/index.html
Browse files- templates/index.html +12 -15
templates/index.html
CHANGED
@@ -3,22 +3,19 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>
|
7 |
</head>
|
8 |
<body>
|
9 |
-
<h1>
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
<li>{{ emotion.label }}: {{ emotion.score }}</li>
|
21 |
-
{% endfor %}
|
22 |
-
</ul>
|
23 |
</body>
|
24 |
</html>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Audio Processing App</title>
|
7 |
</head>
|
8 |
<body>
|
9 |
+
<h1>Audio Processing App</h1>
|
10 |
+
<form action="/transcribe" method="post" enctype="multipart/form-data">
|
11 |
+
<label for="audio_file">Upload Audio File:</label>
|
12 |
+
<input type="file" name="audio_file" accept=".wav, .mp3, .flac" required>
|
13 |
+
<br>
|
14 |
+
<label for="task">Task:</label>
|
15 |
+
<input type="radio" name="task" value="transcribe" checked> Transcribe
|
16 |
+
<input type="radio" name="task" value="translate"> Translate
|
17 |
+
<br>
|
18 |
+
<input type="submit" value="Process">
|
19 |
+
</form>
|
|
|
|
|
|
|
20 |
</body>
|
21 |
</html>
|