Spaces:
Running
Running
Create Interface.html
Browse files- Interface.html +33 -0
Interface.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<link rel="stylesheet" href="styles.css"> <!-- Link to your external CSS file -->
|
7 |
+
<title>FastAPI HTML Interface</title>
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<h1>FastAPI HTML Interface</h1>
|
11 |
+
<form>
|
12 |
+
<div class="form-group">
|
13 |
+
<label for="speaker">Select speaker:</label>
|
14 |
+
<select id="speaker" name="speaker">
|
15 |
+
{% for option in data.speaker_options %}
|
16 |
+
<option {% if option == data.default_speaker %}selected{% endif %}>{{ option }}</option>
|
17 |
+
{% endfor %}
|
18 |
+
</select>
|
19 |
+
</div>
|
20 |
+
<div class="form-group">
|
21 |
+
<label for="text">Text to synthesize:</label>
|
22 |
+
<input type="text" id="text" name="text" placeholder="Enter your text here" class="text-input">
|
23 |
+
</div>
|
24 |
+
<div class="form-group">
|
25 |
+
<label for="rate">Rate scale:</label>
|
26 |
+
<input type="range" id="rate" name="rate" min="0.25" max="4" step="0.1" value="1" class="slider">
|
27 |
+
</div>
|
28 |
+
<!-- Add more form elements here -->
|
29 |
+
<button type="button" id="synthesize" class="btn-success">Synthesize</button>
|
30 |
+
<button type="button" id="exit" class="btn-danger">Exit</button>
|
31 |
+
</form>
|
32 |
+
</body>
|
33 |
+
</html>
|