Spaces:
Running
Running
Commit
·
cbcbe6c
1
Parent(s):
455b5f2
update arena page
Browse files- templates/arena.html +2 -2
templates/arena.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
<div id="tts-tab" class="tab-content active">
|
| 13 |
<form class="input-container">
|
| 14 |
<div class="input-group">
|
| 15 |
-
<button type="button" class="segmented-btn random-voice-btn" title="Roll random voice"
|
| 16 |
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none"
|
| 17 |
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
|
| 18 |
class="lucide lucide-shuffle-icon lucide-shuffle">
|
|
@@ -793,7 +793,7 @@
|
|
| 793 |
// Reset the flag for both samples played
|
| 794 |
bothSamplesPlayed = false;
|
| 795 |
|
| 796 |
-
//
|
| 797 |
const voiceFileInput = document.getElementById('voice-file');
|
| 798 |
const file = voiceFileInput.files[0];
|
| 799 |
let fetchOptions;
|
|
|
|
| 12 |
<div id="tts-tab" class="tab-content active">
|
| 13 |
<form class="input-container">
|
| 14 |
<div class="input-group">
|
| 15 |
+
<button type="button" class="segmented-btn random-voice-btn" title="Roll random voice">
|
| 16 |
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none"
|
| 17 |
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
|
| 18 |
class="lucide lucide-shuffle-icon lucide-shuffle">
|
|
|
|
| 793 |
// Reset the flag for both samples played
|
| 794 |
bothSamplesPlayed = false;
|
| 795 |
|
| 796 |
+
// 新增:处理参���音色文件上传
|
| 797 |
const voiceFileInput = document.getElementById('voice-file');
|
| 798 |
const file = voiceFileInput.files[0];
|
| 799 |
let fetchOptions;
|