Files
Voice-Cloning-App/application/static/import-export.html

82 lines
2.7 KiB
HTML
Raw Permalink Normal View History

2021-03-10 15:56:40 +00:00
{% extends "simplebase.html" %}
{% block content %}
<div class="tab">
<button class="tablinks active" onclick="openPane(event, 'import')">Import</button>
<button class="tablinks" onclick="openPane(event, 'export')">Export</button>
</div>
<br>
<div id="import" class="tabcontent" style="display: block;">
<h3>Upload dataset</h3>
2021-06-10 22:15:05 +01:00
<p>Before uploading, check the following:</p>
<ul>
<li>You have a metadata.csv file and wavs folder in the root of the zip</li>
<li>Each wav file has a transcription in metadata.csv</li>
<li>Each wav file is 1-10 seconds in duration</li>
</ul>
2021-03-10 15:56:40 +00:00
<form method="POST" action="/upload-dataset" enctype="multipart/form-data">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="dataset">Dataset (.zip)</label>
<input type="file" id="dataset" name="dataset" required>
</div>
<input type="submit" class="btn btn-primary">
</form>
<hr>
<h3>Upload model</h3>
2021-06-10 22:15:05 +01:00
<p>Please ensure the model is Tacotron2 based or created by this app</p>
2021-03-10 15:56:40 +00:00
<form method="POST" action="/upload-model" enctype="multipart/form-data">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
2021-07-25 19:49:26 +01:00
<label for="model_upload">Model (.pt)</label>
<input type="file" id="model_upload" name="model_upload" required>
2021-03-10 15:56:40 +00:00
</div>
<input type="submit" class="btn btn-primary">
</form>
</div>
<div id="export" class="tabcontent">
<h3>Export dataset</h3>
<form method="POST" action="/download-dataset" enctype="multipart/form-data">
<div class="form-group">
<select class="form-control" id="dataset" name="dataset">
{% for dataset in datasets %}
<option value="{{dataset}}">{{dataset}}</option>
{% endfor %}
</select>
</div>
<input type="submit" class="btn btn-primary">
</form>
<hr>
<h3>Export model</h3>
<form method="POST" action="/download-model" enctype="multipart/form-data">
2021-07-25 19:49:26 +01:00
<h5>Voice</h5>
2021-03-10 15:56:40 +00:00
<div class="form-group">
2021-07-25 19:49:26 +01:00
<select class="form-control" id="model" name="model" onchange="selectModel()">
2021-03-10 15:56:40 +00:00
{% for model in models %}
<option value="{{model}}">{{model}}</option>
{% endfor %}
</select>
</div>
2021-07-25 19:49:26 +01:00
<div class="form-group">
<h5>Checkpoint</h5>
<select class="form-control" id="checkpoint" name="checkpoint" required></select>
</div>
2021-03-10 15:56:40 +00:00
<input type="submit" class="btn btn-primary">
</form>
</div>
2021-07-25 19:49:26 +01:00
<script>
let checkpoints = {{ checkpoints|safe }};
</script>
2021-08-24 18:56:42 +01:00
<script src="{{ url_for('static', filename='synthesis-setup.js') }}"></script>
2021-03-10 15:56:40 +00:00
{% endblock %}