Update app.py
Browse files
app.py
CHANGED
|
@@ -145,6 +145,37 @@ with gr.Blocks(css=css) as demo:
|
|
| 145 |
visible = False
|
| 146 |
)
|
| 147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
submit_btn.click(
|
| 149 |
fn = infer,
|
| 150 |
inputs = [
|
|
|
|
| 145 |
visible = False
|
| 146 |
)
|
| 147 |
|
| 148 |
+
gr.HTML("""
|
| 149 |
+
<div class="footer">
|
| 150 |
+
<p>
|
| 151 |
+
Instant Voice Cloning Demo by 🤗 <a href="https://twitter.com/fffiloni" target="_blank">Sylvain Filoni</a>
|
| 152 |
+
</p>
|
| 153 |
+
</div>
|
| 154 |
+
""")
|
| 155 |
+
|
| 156 |
+
gr.Examples(
|
| 157 |
+
examples = [
|
| 158 |
+
[
|
| 159 |
+
"./examples/en_speaker_6.wav",
|
| 160 |
+
"Once upon a time, in a cozy little shell, lived a friendly crab named Crabby. Crabby loved his cozy home, but he always felt like something was missing."
|
| 161 |
+
],
|
| 162 |
+
[
|
| 163 |
+
"./examples/en_speaker_9.wav",
|
| 164 |
+
"It was a typical afternoon in the bustling city, the sun shining brightly through the windows of the packed courtroom. Three people sat at the bar, their faces etched with worry and anxiety. "
|
| 165 |
+
],
|
| 166 |
+
],
|
| 167 |
+
fn = infer,
|
| 168 |
+
inputs = [
|
| 169 |
+
prompt,
|
| 170 |
+
audio_in
|
| 171 |
+
],
|
| 172 |
+
outputs = [
|
| 173 |
+
cloned_out,
|
| 174 |
+
video_out,
|
| 175 |
+
npz_file
|
| 176 |
+
]
|
| 177 |
+
)
|
| 178 |
+
|
| 179 |
submit_btn.click(
|
| 180 |
fn = infer,
|
| 181 |
inputs = [
|