Spaces:
Running
Running
Update index.html and app.py
Browse files- app.py +4 -0
- index.html +10 -1
app.py
CHANGED
@@ -8,6 +8,10 @@ app = Flask(__name__)
|
|
8 |
def index():
|
9 |
return send_from_directory(".", "index.html")
|
10 |
|
|
|
|
|
|
|
|
|
11 |
@app.route('/upload_audio', methods=['POST'])
|
12 |
def upload_audio():
|
13 |
try:
|
|
|
8 |
def index():
|
9 |
return send_from_directory(".", "index.html")
|
10 |
|
11 |
+
@app.route('/feedback',methods=['POST'])
|
12 |
+
def feedback():
|
13 |
+
return send_from_directory(".","feedback.html")
|
14 |
+
|
15 |
@app.route('/upload_audio', methods=['POST'])
|
16 |
def upload_audio():
|
17 |
try:
|
index.html
CHANGED
@@ -68,9 +68,18 @@
|
|
68 |
<canvas id="speechChart"></canvas>
|
69 |
</div>
|
70 |
<button class="record-button" id="recordButton" onclick="toggleRecording()">
|
71 |
-
|
72 |
</button>
|
|
|
73 |
<button class="result-button" id="resultButton" onclick="showResults()">結果を表示</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
<script>
|
76 |
let isRecording = false;
|
|
|
68 |
<canvas id="speechChart"></canvas>
|
69 |
</div>
|
70 |
<button class="record-button" id="recordButton" onclick="toggleRecording()">
|
71 |
+
<div class="record-icon" id="recordIcon"></div>
|
72 |
</button>
|
73 |
+
<!--
|
74 |
<button class="result-button" id="resultButton" onclick="showResults()">結果を表示</button>
|
75 |
+
-->
|
76 |
+
|
77 |
+
<form method="POST" action="/feedback">
|
78 |
+
<div class="feedback-space">
|
79 |
+
<input class="result-button" id="resultButton" type="submit" name="submit" value="フィードバック画面を表示">
|
80 |
+
</div>
|
81 |
+
</form>
|
82 |
+
|
83 |
|
84 |
<script>
|
85 |
let isRecording = false;
|