Spaces:
Running
Running
Update templates/interface.html
Browse files- templates/interface.html +21 -3
templates/interface.html
CHANGED
@@ -46,9 +46,27 @@
|
|
46 |
<label for="text_input">Text to synthesize:</label>
|
47 |
<input type="text" id="text_input" placeholder="Enter your text here">
|
48 |
</div>
|
49 |
-
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
<div>
|
53 |
<!-- HTML audio element to play the generated audio -->
|
54 |
<audio controls>
|
|
|
46 |
<label for="text_input">Text to synthesize:</label>
|
47 |
<input type="text" id="text_input" placeholder="Enter your text here">
|
48 |
</div>
|
49 |
+
<form method="post" action="/synthesize">
|
50 |
+
<div>
|
51 |
+
<label for="text_input">Text to synthesize:</label>
|
52 |
+
<input type="text" id="text_input" name="text_input" placeholder="Enter your text here">
|
53 |
+
</div>
|
54 |
+
<div>
|
55 |
+
<label for="speed_slider">Rate scale:</label>
|
56 |
+
<input type="range" id="speed_slider" name="speed_slider" min="0.25" max="4" step="0.1" value="1">
|
57 |
+
</div>
|
58 |
+
<!-- Add other input fields and elements here -->
|
59 |
+
<div>
|
60 |
+
<button type="submit" id="synthesize_button">Synthesize</button>
|
61 |
+
<button type="button" id="close_button" onclick="closeGUI()">Exit</button>
|
62 |
+
</div>
|
63 |
+
</form>
|
64 |
+
<script>
|
65 |
+
// JavaScript function for handling the "Exit" button click
|
66 |
+
function closeGUI() {
|
67 |
+
// Add logic to close the GUI if needed
|
68 |
+
alert("Closing the GUI");
|
69 |
+
}
|
70 |
<div>
|
71 |
<!-- HTML audio element to play the generated audio -->
|
72 |
<audio controls>
|