Update app.py
Browse files
app.py
CHANGED
@@ -167,37 +167,37 @@ with gr.Blocks(css=css) as demo:
|
|
167 |
|
168 |
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
175 |
],
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
179 |
],
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
<div class="footer">
|
196 |
-
<p>
|
197 |
-
Instant Voice Cloning Demo by 🤗 <a href="https://twitter.com/fffiloni" target="_blank">Sylvain Filoni</a>
|
198 |
-
</p>
|
199 |
-
</div>
|
200 |
-
""")
|
201 |
|
202 |
submit_btn.click(
|
203 |
fn = infer,
|
|
|
167 |
|
168 |
|
169 |
|
170 |
+
gr.Examples(
|
171 |
+
examples = [
|
172 |
+
[
|
173 |
+
"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.",
|
174 |
+
"./examples/en_speaker_6.wav",
|
175 |
+
],
|
176 |
+
[
|
177 |
+
"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. ",
|
178 |
+
"./examples/en_speaker_9.wav",
|
179 |
+
],
|
180 |
],
|
181 |
+
fn = infer,
|
182 |
+
inputs = [
|
183 |
+
prompt,
|
184 |
+
audio_in
|
185 |
],
|
186 |
+
outputs = [
|
187 |
+
cloned_out,
|
188 |
+
video_out,
|
189 |
+
npz_file
|
190 |
+
],
|
191 |
+
cache_examples = True
|
192 |
+
)
|
193 |
+
|
194 |
+
gr.HTML("""
|
195 |
+
<div class="footer">
|
196 |
+
<p>
|
197 |
+
Instant Voice Cloning Demo by 🤗 <a href="https://twitter.com/fffiloni" target="_blank">Sylvain Filoni</a>
|
198 |
+
</p>
|
199 |
+
</div>
|
200 |
+
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
|
202 |
submit_btn.click(
|
203 |
fn = infer,
|