dynamicmortal commited on
Commit
66a26ce
1 Parent(s): 0f92461

Update templates/index.html

Browse files
Files changed (1) hide show
  1. 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>Analysis Results</title>
7
  </head>
8
  <body>
9
- <h1>Analysis Results</h1>
10
-
11
- <h2>Transcript</h2>
12
- <p>{{ result.transcript }}</p>
13
-
14
- <h2>Sentiment</h2>
15
- <p>Score: {{ result.sentiment.score }}, Label: {{ result.sentiment.label }}</p>
16
-
17
- <h2>Emotion</h2>
18
- <ul>
19
- {% for emotion in result.emotion %}
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>