Backend access to temp and repetition
Added the capability to change the default temperature and repetition settings of the model along with writing documentation to explain it all.
This commit is contained in:
1 parent
f42b2c1d26
commit
e4b581a1be
3 files changed
+188
-103
No files matched your search
+111
-72
@@ -18,13 +18,15 @@
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
text-decoration: underline;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
form {
|
||||
max-width: 800px;
|
||||
max-width: 975px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
@@ -67,12 +69,18 @@
|
||||
font-size: 12px;
|
||||
grid-column: span 4;
|
||||
}
|
||||
.warning {
|
||||
grid-column: span 4; /* Span all 4 columns */
|
||||
text-align: center; /* Center-align the text */
|
||||
color: red; /* Adjusted color for emphasis */
|
||||
font-weight: bold; /* Make the text bold */
|
||||
margin-top: 10px; /* Add some space between the button and the warning */
|
||||
|
||||
.warning {
|
||||
grid-column: span 4;
|
||||
/* Span all 4 columns */
|
||||
text-align: center;
|
||||
/* Center-align the text */
|
||||
color: red;
|
||||
/* Adjusted color for emphasis */
|
||||
font-weight: bold;
|
||||
/* Make the text bold */
|
||||
margin-top: 10px;
|
||||
/* Add some space between the button and the warning */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@@ -100,39 +108,39 @@
|
||||
</select>
|
||||
|
||||
<label for="voice" style="color: #33cc33;"> Default voice:</label>
|
||||
<select id="voice" name="voice" required="">
|
||||
{% for file in wav_files %}
|
||||
<option value="{{ file }}" {% if data.voice == file %}selected{% endif %}>{{ file }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<select id="voice" name="voice" required="">
|
||||
{% for file in wav_files %}
|
||||
<option value="{{ file }}" {% if data.voice==file %}selected{% endif %}>{{ file }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
|
||||
<label for="language" style="color: #33cc33;">Default Language:</label>
|
||||
<select id="language" name="language" required="">
|
||||
<option value="Arabic" {% if data.language == 'Arabic' %}selected{% endif %}>Arabic</option>
|
||||
<option value="Chinese" {% if data.language == 'Chinese' %}selected{% endif %}>Chinese</option>
|
||||
<option value="Czech" {% if data.language == 'Czech' %}selected{% endif %}>Czech</option>
|
||||
<option value="Dutch" {% if data.language == 'Dutch' %}selected{% endif %}>Dutch</option>
|
||||
<option value="English" {% if data.language == 'English' %}selected{% endif %}>English</option>
|
||||
<option value="French" {% if data.language == 'French' %}selected{% endif %}>French</option>
|
||||
<option value="German" {% if data.language == 'German' %}selected{% endif %}>German</option>
|
||||
<option value="Hungarian" {% if data.language == 'Hungarian' %}selected{% endif %}>Hungarian</option>
|
||||
<option value="Italian" {% if data.language == 'Italian' %}selected{% endif %}>Italian</option>
|
||||
<option value="Japanese" {% if data.language == 'Japanese' %}selected{% endif %}>Japanese</option>
|
||||
<option value="Korean" {% if data.language == 'Korean' %}selected{% endif %}>Korean</option>
|
||||
<option value="Polish" {% if data.language == 'Polish' %}selected{% endif %}>Polish</option>
|
||||
<option value="Portuguese" {% if data.language == 'Portuguese' %}selected{% endif %}>Portuguese</option>
|
||||
<option value="Russian" {% if data.language == 'Russian' %}selected{% endif %}>Russian</option>
|
||||
<option value="Spanish" {% if data.language == 'Spanish' %}selected{% endif %}>Spanish</option>
|
||||
<option value="Turkish" {% if data.language == 'Turkish' %}selected{% endif %}>Turkish</option>
|
||||
</select>
|
||||
<label for="language" style="color: #33cc33;">Default Language:</label>
|
||||
<select id="language" name="language" required="">
|
||||
<option value="Arabic" {% if data.language=='Arabic' %}selected{% endif %}>Arabic</option>
|
||||
<option value="Chinese" {% if data.language=='Chinese' %}selected{% endif %}>Chinese</option>
|
||||
<option value="Czech" {% if data.language=='Czech' %}selected{% endif %}>Czech</option>
|
||||
<option value="Dutch" {% if data.language=='Dutch' %}selected{% endif %}>Dutch</option>
|
||||
<option value="English" {% if data.language=='English' %}selected{% endif %}>English</option>
|
||||
<option value="French" {% if data.language=='French' %}selected{% endif %}>French</option>
|
||||
<option value="German" {% if data.language=='German' %}selected{% endif %}>German</option>
|
||||
<option value="Hungarian" {% if data.language=='Hungarian' %}selected{% endif %}>Hungarian</option>
|
||||
<option value="Italian" {% if data.language=='Italian' %}selected{% endif %}>Italian</option>
|
||||
<option value="Japanese" {% if data.language=='Japanese' %}selected{% endif %}>Japanese</option>
|
||||
<option value="Korean" {% if data.language=='Korean' %}selected{% endif %}>Korean</option>
|
||||
<option value="Polish" {% if data.language=='Polish' %}selected{% endif %}>Polish</option>
|
||||
<option value="Portuguese" {% if data.language=='Portuguese' %}selected{% endif %}>Portuguese</option>
|
||||
<option value="Russian" {% if data.language=='Russian' %}selected{% endif %}>Russian</option>
|
||||
<option value="Spanish" {% if data.language=='Spanish' %}selected{% endif %}>Spanish</option>
|
||||
<option value="Turkish" {% if data.language=='Turkish' %}selected{% endif %}>Turkish</option>
|
||||
</select>
|
||||
|
||||
<label for="narrator_voice" style="color: #33cc33;"> Narrator voice:</label>
|
||||
<select id="narrator_voice" name="narrator_voice" required="">
|
||||
{% for file in wav_files %}
|
||||
<option value="{{ file }}" {% if data.narrator_voice == file %}selected{% endif %}>{{ file }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<select id="narrator_voice" name="narrator_voice" required="">
|
||||
{% for file in wav_files %}
|
||||
<option value="{{ file }}" {% if data.narrator_voice==file %}selected{% endif %}>{{ file }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<label for="remove_trailing_dots" style="color: #33cc33;"> Remove Trailing Dots:</label>
|
||||
<select id="remove_trailing_dots" name="remove_trailing_dots" required="">
|
||||
@@ -146,37 +154,51 @@
|
||||
<option {% if not data.narrator_enabled %}selected{% endif %} value="false">False</option>
|
||||
</select>
|
||||
|
||||
<label for="delete_output_wavs" style="color: #33cc33;">Del WAV's older than:</label>
|
||||
<select id="delete_output_wavs" name="delete_output_wavs" required="">
|
||||
<option value="Disabled" {% if data.delete_output_wavs == 'Disabled' %}selected{% endif %}>Disabled</option>
|
||||
<option value="1 Day" {% if data.delete_output_wavs == '1 Day' %}selected{% endif %}>1 Day</option>
|
||||
<option value="2 Days" {% if data.delete_output_wavs == '2 Days' %}selected{% endif %}>2 Days</option>
|
||||
<option value="3 Days" {% if data.delete_output_wavs == '3 Days' %}selected{% endif %}>3 Days</option>
|
||||
<option value="4 Day" {% if data.delete_output_wavs == '4 Days' %}selected{% endif %}>4 Days</option>
|
||||
<option value="5 Day" {% if data.delete_output_wavs == '5 Days' %}selected{% endif %}>5 Days</option>
|
||||
<option value="6 Day" {% if data.delete_output_wavs == '6 Days' %}selected{% endif %}>6 Days</option>
|
||||
<option value="7 Days" {% if data.delete_output_wavs == '7 Days' %}selected{% endif %}>7 Days</option>
|
||||
<option value="14 Days" {% if data.delete_output_wavs == '14 Days' %}selected{% endif %}>14 Days</option>
|
||||
<option value="21 Days" {% if data.delete_output_wavs == '21 Days' %}selected{% endif %}>21 Days</option>
|
||||
<option value="28 Days" {% if data.delete_output_wavs == '28 Days' %}selected{% endif %}>28 Days</option>
|
||||
</select>
|
||||
<label for="delete_output_wavs" style="color: #33cc33;">Del WAV's older than:</label>
|
||||
<select id="delete_output_wavs" name="delete_output_wavs" required="">
|
||||
<option value="Disabled" {% if data.delete_output_wavs=='Disabled' %}selected{% endif %}>Disabled</option>
|
||||
<option value="1 Day" {% if data.delete_output_wavs=='1 Day' %}selected{% endif %}>1 Day</option>
|
||||
<option value="2 Days" {% if data.delete_output_wavs=='2 Days' %}selected{% endif %}>2 Days</option>
|
||||
<option value="3 Days" {% if data.delete_output_wavs=='3 Days' %}selected{% endif %}>3 Days</option>
|
||||
<option value="4 Day" {% if data.delete_output_wavs=='4 Days' %}selected{% endif %}>4 Days</option>
|
||||
<option value="5 Day" {% if data.delete_output_wavs=='5 Days' %}selected{% endif %}>5 Days</option>
|
||||
<option value="6 Day" {% if data.delete_output_wavs=='6 Days' %}selected{% endif %}>6 Days</option>
|
||||
<option value="7 Days" {% if data.delete_output_wavs=='7 Days' %}selected{% endif %}>7 Days</option>
|
||||
<option value="14 Days" {% if data.delete_output_wavs=='14 Days' %}selected{% endif %}>14 Days</option>
|
||||
<option value="21 Days" {% if data.delete_output_wavs=='21 Days' %}selected{% endif %}>21 Days</option>
|
||||
<option value="28 Days" {% if data.delete_output_wavs=='28 Days' %}selected{% endif %}>28 Days</option>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<label for="low_vram" style="color: #33cc33;"> Low VRAM:</label>
|
||||
<select id="low_vram" name="low_vram" required="">
|
||||
<option {% if data.low_vram %}selected{% endif %} value="true">True</option>
|
||||
<option {% if not data.low_vram %}selected{% endif %} value="false">False</option>
|
||||
</select>
|
||||
|
||||
|
||||
<label for="local_temperature" style="color: red;">Local Model temperature:</label>
|
||||
<select id="local_temperature" name="local_temperature" required="">
|
||||
{% for temp in range(0, 101, 5) %}
|
||||
<option value="{{ temp/100 }}" {% if data.local_temperature|float == temp/100 %}selected{% endif %}>{{ "{:.2f}".format(temp/100) }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<label for="local_repetition_penalty" style="color: red;"> Local Model repetition penalty:</label>
|
||||
<select id="local_repetition_penalty" name="local_repetition_penalty" required="">
|
||||
{% for repetition in range(10, 210, 10) %}
|
||||
<option value="{{ repetition/10 }}" {% if data.local_repetition_penalty|float == repetition/10 %}selected{% endif %}>{{ repetition/10 }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<label for="deepspeed_activate" style="color: red;">DeepSpeed Activate:</label>
|
||||
<select id="deepspeed_activate" name="deepspeed_activate" required="">
|
||||
<option {% if data.deepspeed_activate %}selected{% endif %} value="true">True</option>
|
||||
<option {% if not data.deepspeed_activate %}selected{% endif %} value="false">False</option>
|
||||
</select>
|
||||
|
||||
<label for="output_folder_wav" style="color: red;"> WAV Output Folder:</label>
|
||||
<input id="output_folder_wav" name="output_folder_wav" required="" type="text" value="{{ data.output_folder_wav }}" />
|
||||
<label for="output_folder_wav" style="color: red;"> WAV Output Folder:</label>
|
||||
<input id="output_folder_wav" name="output_folder_wav" required="" type="text"
|
||||
value="{{ data.output_folder_wav }}" />
|
||||
|
||||
|
||||
<input type="hidden" id="model_loaded" name="model_loaded" value="{{ data.model_loaded }}" />
|
||||
@@ -186,8 +208,18 @@
|
||||
<label for="model_name" style="color: red;"> API TTS Model Name:</label>
|
||||
<input id="model_name" name="model_name" required="" type="text" value="{{ data.model_name }}" />
|
||||
|
||||
<label for="model_version" style="color: red; font-size: 16px; line-height: 1; vertical-align: bottom; margin-bottom: 0;"> API Local Model Folder:</label>
|
||||
<span style="font-size: 14px; vertical-align: bottom; margin-bottom: 0; margin-top: 2px;">{{ modeldownload_model_path }}</span>
|
||||
<label for="model_version"
|
||||
style="color: red; font-size: 16px; line-height: 1; vertical-align: bottom; margin-bottom: 0;">
|
||||
API Local Model Folder:</label>
|
||||
<span style="font-size: 14px; vertical-align: bottom; margin-bottom: 0; margin-top: 2px;">{{
|
||||
modeldownload_model_path }}</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -198,24 +230,31 @@
|
||||
<label for="port_number" style="color: red;"> Port Number:</label>
|
||||
<input id="port_number" name="port_number" required="" type="text" value="{{ data.port_number }}" />
|
||||
|
||||
<div class="radio-group">
|
||||
<label for="tts_method_api_local" style="color: #33cc33;">Model: <span style="color: black; font-weight: normal;">API Local</span>:</label>
|
||||
<input id="tts_method_api_local_true" {% if data.tts_method_api_local %}checked{% endif %} name="tts_method" type="radio" value="api_local" />
|
||||
</div>
|
||||
<div class="radio-group">
|
||||
<label for="tts_method_api_local" style="color: #33cc33;">Model: <span
|
||||
style="color: black; font-weight: normal;">API Local</span>:</label>
|
||||
<input id="tts_method_api_local_true" {% if data.tts_method_api_local %}checked{% endif %} name="tts_method"
|
||||
type="radio" value="api_local" />
|
||||
</div>
|
||||
|
||||
<div class="radio-group">
|
||||
<label for="tts_method_api_tts" style="color: #33cc33;"> Model: <span style="color: black; font-weight: normal;">API TTS</span>:</label>
|
||||
<input id="tts_method_api_tts_true" {% if data.tts_method_api_tts %}checked{% endif %} name="tts_method" type="radio" value="api_tts" />
|
||||
</div>
|
||||
<div class="radio-group">
|
||||
<label for="tts_method_api_tts" style="color: #33cc33;"> Model: <span
|
||||
style="color: black; font-weight: normal;">API TTS</span>:</label>
|
||||
<input id="tts_method_api_tts_true" {% if data.tts_method_api_tts %}checked{% endif %} name="tts_method"
|
||||
type="radio" value="api_tts" />
|
||||
</div>
|
||||
|
||||
<div class="radio-group">
|
||||
<label for="tts_method_xtts_local" style="color: #33cc33;">Model: <span style="color: black; font-weight: normal;">XTTS Local</span>:</label>
|
||||
<input id="tts_method_xtts_local_true" {% if data.tts_method_xtts_local %}checked{% endif %} name="tts_method" type="radio" value="xtts_local" />
|
||||
</div>
|
||||
<div class="radio-group">
|
||||
<label for="tts_method_xtts_local" style="color: #33cc33;">Model: <span
|
||||
style="color: black; font-weight: normal;">XTTS Local</span>:</label>
|
||||
<input id="tts_method_xtts_local_true" {% if data.tts_method_xtts_local %}checked{% endif %}
|
||||
name="tts_method" type="radio" value="xtts_local" />
|
||||
</div>
|
||||
<button type="submit">Update Settings</button>
|
||||
</form>
|
||||
<p class="warning">WARNING: Changing RED items or setting DeepSpeed to True on a system without DeepSpeed installed, may cause errors.</p>
|
||||
</form>
|
||||
<p class="warning">WARNING: Changing RED items or setting DeepSpeed to True on a system without DeepSpeed installed,
|
||||
may cause errors.</p>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
Reference in new issue
Block a user