Blane187 commited on
Commit
8784786
·
verified ·
1 Parent(s): a1d7b3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -3,19 +3,16 @@ import shutil, glob
3
  from easyfuncs import download_from_url, CachedModels
4
  os.makedirs("dataset",exist_ok=True)
5
  model_library = CachedModels()
6
-
7
-
8
  from typing import Iterable
9
  import gradio as gr
10
 
 
 
11
  # gr.themes.builder()
12
  from gradio.themes.base import Base
13
  from gradio.themes.utils import colors, fonts, sizes
14
  import time
15
 
16
-
17
-
18
-
19
  # Applio Theme
20
  class Applio(Base):
21
  def __init__(
@@ -296,7 +293,7 @@ theme = Applio()
296
 
297
 
298
 
299
- with gr.Blocks(title="🔊",theme=theme) as app:
300
  with gr.Row():
301
 
302
  gr.HTML("<img src='https://huggingface.co/spaces/Blane187/RVC_HF_V2/resolve/main/a.png' alt='image'>")
@@ -315,10 +312,7 @@ with gr.Blocks(title="🔊",theme=theme) as app:
315
  visible=False,
316
  interactive=True,
317
  )
318
- vc_transform0 = gr.Number(
319
- label="Pitch",
320
- value=0
321
- )
322
  but0 = gr.Button(value="Convert", variant="primary")
323
  with gr.Row():
324
  with gr.Column():
 
3
  from easyfuncs import download_from_url, CachedModels
4
  os.makedirs("dataset",exist_ok=True)
5
  model_library = CachedModels()
 
 
6
  from typing import Iterable
7
  import gradio as gr
8
 
9
+ os.system("python tools/download_models.py") # -> dummy extra
10
+
11
  # gr.themes.builder()
12
  from gradio.themes.base import Base
13
  from gradio.themes.utils import colors, fonts, sizes
14
  import time
15
 
 
 
 
16
  # Applio Theme
17
  class Applio(Base):
18
  def __init__(
 
293
 
294
 
295
 
296
+ with gr.Blocks(title="RVC V2",theme=theme) as app:
297
  with gr.Row():
298
 
299
  gr.HTML("<img src='https://huggingface.co/spaces/Blane187/RVC_HF_V2/resolve/main/a.png' alt='image'>")
 
312
  visible=False,
313
  interactive=True,
314
  )
315
+ vc_transform0 = gr.Number(label="Pitch",value=0)
 
 
 
316
  but0 = gr.Button(value="Convert", variant="primary")
317
  with gr.Row():
318
  with gr.Column():