Peiiiiiiiiru commited on
Commit
8bd1d5c
1 Parent(s): c595eda

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +22 -0
templates/index.html ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>認知測試與語音分析</title>
7
+ <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
8
+ </head>
9
+ <body>
10
+ <h1>心理認知測試與語音分析工具</h1>
11
+ <p>請錄製一段獨白或上傳語音檔案,我們將分析您的情緒並提供建議。</p>
12
+
13
+ <button onclick="startRecording()">開始錄音</button>
14
+ <button onclick="stopRecording()">停止錄音</button>
15
+ <audio id="audioPlayback" controls></audio>
16
+ <button onclick="uploadAudio()">上傳語音</button>
17
+
18
+ <div id="result"></div>
19
+
20
+ <script src="{{ url_for('static', filename='script.js') }}"></script>
21
+ </body>
22
+ </html>