зеркало из https://github.com/mozilla/TTS.git
add a button to index.html to see the model details
This commit is contained in:
Родитель
a3adcaccdb
Коммит
0117c811a9
|
@ -81,7 +81,7 @@ app = Flask(__name__)
|
|||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return render_template('index.html')
|
||||
return render_template('index.html', show_details=args.show_details)
|
||||
|
||||
@app.route('/details')
|
||||
def details():
|
||||
|
|
|
@ -62,6 +62,9 @@
|
|||
</ul>
|
||||
<input id="text" placeholder="Type here..." size=45 type="text" name="text">
|
||||
<button id="speak-button" name="speak">Speak</button><br/><br/>
|
||||
{%if show_details%}
|
||||
<button id="details-button" onclick="location.href = 'details'" name="model-details">Model Details</button><br/><br/>
|
||||
{%endif%}
|
||||
<audio id="audio" controls autoplay hidden></audio>
|
||||
<p id="message"></p>
|
||||
</div>
|
||||
|
|
Загрузка…
Ссылка в новой задаче