soiz1 commited on
Commit
3d6b811
·
verified ·
1 Parent(s): d5ec0a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -693,8 +693,6 @@ if __name__ == "__main__":
693
  description = ("Zero-shot音声変換モデル(学習不要)。ローカルでの利用方法は[GitHubリポジトリ](https://github.com/Plachtaa/seed-vc)をご覧ください。"
694
  "参考音声が25秒を超える場合、自動的に25秒にクリップされます。"
695
  "また、元音声と参考音声の合計時間が30秒を超える場合、元音声は分割処理されます。")
696
- gallery = gr.Gallery(label="ギャラリー", show_label=True, value=[gallery_data["sikokumetan"]["webp"]])
697
- gallery.select(update_reference, outputs=inputs[1])
698
 
699
  inputs = [
700
  gr.Audio(type="filepath", label="元音声"),
@@ -716,6 +714,8 @@ if __name__ == "__main__":
716
  ]
717
 
718
  with gr.Blocks() as interface:
 
 
719
  gr.Interface(fn=voice_conversion, description=description, inputs=inputs, outputs=[
720
  gr.Audio(label="ストリーム出力音声", streaming=True, format='mp3'),
721
  gr.Audio(label="完全出力音声", streaming=False, format='wav')
 
693
  description = ("Zero-shot音声変換モデル(学習不要)。ローカルでの利用方法は[GitHubリポジトリ](https://github.com/Plachtaa/seed-vc)をご覧ください。"
694
  "参考音声が25秒を超える場合、自動的に25秒にクリップされます。"
695
  "また、元音声と参考音声の合計時間が30秒を超える場合、元音声は分割処理されます。")
 
 
696
 
697
  inputs = [
698
  gr.Audio(type="filepath", label="元音声"),
 
714
  ]
715
 
716
  with gr.Blocks() as interface:
717
+ gallery = gr.Gallery(label="ギャラリー", show_label=True, value=[gallery_data["sikokumetan"]["webp"]])
718
+ gallery.select(update_reference, outputs=inputs[1])
719
  gr.Interface(fn=voice_conversion, description=description, inputs=inputs, outputs=[
720
  gr.Audio(label="ストリーム出力音声", streaming=True, format='mp3'),
721
  gr.Audio(label="完全出力音声", streaming=False, format='wav')