Hev832 commited on
Commit
237ca8a
1 Parent(s): 42d2341

Update download_model.py

Browse files
Files changed (1) hide show
  1. download_model.py +31 -0
download_model.py CHANGED
@@ -1,3 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  def extract_zip(extraction_folder, zip_name):
2
  os.makedirs(extraction_folder)
3
  with zipfile.ZipFile(zip_name, 'r') as zip_ref:
 
1
+ import os
2
+ import re
3
+ import random
4
+ from scipy.io.wavfile import write
5
+ from scipy.io.wavfile import read
6
+ import numpy as np
7
+ import gradio as gr
8
+ import yt_dlp
9
+ import subprocess
10
+ from pydub import AudioSegment
11
+ from audio_separator.separator import Separator
12
+ from lib.infer import infer_audio
13
+ import edge_tts
14
+ import tempfile
15
+ import anyio
16
+ from pathlib import Path
17
+ from lib.language_tts import language_dict
18
+ import os
19
+ import zipfile
20
+ import shutil
21
+ import urllib.request
22
+ import gdown
23
+ import subprocess
24
+ import time
25
+ from argparse import ArgumentParser
26
+ from download_model import download_online_model
27
+ main_dir = Path().resolve()
28
+
29
+ os.chdir(main_dir)
30
+ models_dir = main_dir / "rvc_models"
31
+
32
  def extract_zip(extraction_folder, zip_name):
33
  os.makedirs(extraction_folder)
34
  with zipfile.ZipFile(zip_name, 'r') as zip_ref: