kevinwang676 commited on
Commit
bff1af0
1 Parent(s): 1de0a6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -193,14 +193,7 @@ for lang, code in SUPPORTED_LANGS:
193
  for n in range(10):
194
  speakers_list.append(f"{code}_speaker_{n}")
195
 
196
- examples1 = [
197
-
198
- ["Hello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe.",
199
- "Speaker 1 (en)", 0.7, 0.7]
200
-
201
- ]
202
-
203
- examples2 = [["test.wav", "Bark.wav", "Bark.wav"]]
204
 
205
  with gr.Blocks() as demo:
206
  gr.Markdown(
@@ -248,9 +241,7 @@ with gr.Blocks() as demo:
248
 
249
  btn.click(voice_conversion, [inp5, inp6, inp7], [out2])
250
 
251
- # gr.Examples(examples=examples1, fn=generate_text_to_speech, inputs=[inp1, inp2, inp3, inp4],
252
- # outputs=[out1], cache_examples=True)
253
- gr.Examples(examples=examples2, fn=voice_conversion, inputs=[inp5, inp6, inp7],
254
  outputs=[out2], cache_examples=True)
255
 
256
  gr.Markdown(
 
193
  for n in range(10):
194
  speakers_list.append(f"{code}_speaker_{n}")
195
 
196
+ examples1 = [["reference.wav", "Bark.wav", "Bark.wav"]]
 
 
 
 
 
 
 
197
 
198
  with gr.Blocks() as demo:
199
  gr.Markdown(
 
241
 
242
  btn.click(voice_conversion, [inp5, inp6, inp7], [out2])
243
 
244
+ gr.Examples(examples=examples1, fn=voice_conversion, inputs=[inp5, inp6, inp7],
 
 
245
  outputs=[out2], cache_examples=True)
246
 
247
  gr.Markdown(