Plachta commited on
Commit
b2fcaa6
·
verified ·
1 Parent(s): 70214c1

Update app_v1v2.py

Browse files
Files changed (1) hide show
  1. app_v1v2.py +2 -5
app_v1v2.py CHANGED
@@ -141,7 +141,7 @@ def create_v1_interface():
141
  )
142
 
143
 
144
- def create_v2_interface(vc_wrapper):
145
  # Set up Gradio interface
146
  description = (
147
  "Zero-shot voice/style conversion with in-context learning. For local deployment please check [GitHub repository](https://github.com/Plachtaa/seed-vc) "
@@ -200,12 +200,9 @@ def create_v2_interface(vc_wrapper):
200
 
201
 
202
  def main(args):
203
- # Load V2 models
204
- vc_wrapper_v2 = load_v2_models(args)
205
-
206
  # Create interfaces
207
  v1_interface = create_v1_interface()
208
- v2_interface = create_v2_interface(vc_wrapper_v2)
209
 
210
  # Create tabs
211
  with gr.Blocks(title="Seed Voice Conversion") as demo:
 
141
  )
142
 
143
 
144
+ def create_v2_interface():
145
  # Set up Gradio interface
146
  description = (
147
  "Zero-shot voice/style conversion with in-context learning. For local deployment please check [GitHub repository](https://github.com/Plachtaa/seed-vc) "
 
200
 
201
 
202
  def main(args):
 
 
 
203
  # Create interfaces
204
  v1_interface = create_v1_interface()
205
+ v2_interface = create_v2_interface()
206
 
207
  # Create tabs
208
  with gr.Blocks(title="Seed Voice Conversion") as demo: