mirror of https://github.com/coqui-ai/TTS.git
add a button to index.html to see the model details
This commit is contained in:
parent
a3adcaccdb
commit
0117c811a9
|
@ -81,7 +81,7 @@ app = Flask(__name__)
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
return render_template('index.html', show_details=args.show_details)
|
||||||
|
|
||||||
@app.route('/details')
|
@app.route('/details')
|
||||||
def details():
|
def details():
|
||||||
|
|
|
@ -62,6 +62,9 @@
|
||||||
</ul>
|
</ul>
|
||||||
<input id="text" placeholder="Type here..." size=45 type="text" name="text">
|
<input id="text" placeholder="Type here..." size=45 type="text" name="text">
|
||||||
<button id="speak-button" name="speak">Speak</button><br/><br/>
|
<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>
|
<audio id="audio" controls autoplay hidden></audio>
|
||||||
<p id="message"></p>
|
<p id="message"></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue