mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
fix colab runtime
This commit is contained in:
parent
186c114cc1
commit
e3c6aaa906
5
run.py
5
run.py
@ -15,7 +15,6 @@ from models.encoder import inference as speacker_encoder
|
|||||||
from models.vocoder.hifigan import inference as vocoder
|
from models.vocoder.hifigan import inference as vocoder
|
||||||
from models.ppg2mel import MelDecoderMOLv2
|
from models.ppg2mel import MelDecoderMOLv2
|
||||||
from utils.f0_utils import compute_f0, f02lf0, compute_mean_std, get_converted_lf0uv
|
from utils.f0_utils import compute_f0, f02lf0, compute_mean_std, get_converted_lf0uv
|
||||||
from pyngrok import ngrok
|
|
||||||
|
|
||||||
|
|
||||||
def _build_ppg2mel_model(model_config, model_file, device):
|
def _build_ppg2mel_model(model_config, model_file, device):
|
||||||
@ -138,10 +137,6 @@ def main():
|
|||||||
parser = get_parser()
|
parser = get_parser()
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
convert(args)
|
convert(args)
|
||||||
# Setup a tunnel to the streamlit port 2023
|
|
||||||
|
|
||||||
public_url = ngrok.connect(port="2023")
|
|
||||||
print(public_url)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
5
web.py
5
web.py
@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import typer
|
import typer
|
||||||
|
from pyngrok import ngrok
|
||||||
|
|
||||||
cli = typer.Typer()
|
cli = typer.Typer()
|
||||||
|
|
||||||
@ -11,6 +12,10 @@ def launch(port: int = typer.Option(2023, "--port", "-p")) -> None:
|
|||||||
|
|
||||||
The UI is auto-generated from the input- and output-schema of the given function.
|
The UI is auto-generated from the input- and output-schema of the given function.
|
||||||
"""
|
"""
|
||||||
|
# Setup a tunnel to the streamlit port 2023
|
||||||
|
|
||||||
|
public_url = ngrok.connect(port="2023")
|
||||||
|
print(public_url)
|
||||||
# Add the current working directory to the sys path
|
# Add the current working directory to the sys path
|
||||||
# This is required to resolve the opyrator path
|
# This is required to resolve the opyrator path
|
||||||
sys.path.append(os.getcwd())
|
sys.path.append(os.getcwd())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user