fix colab runtime
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.ppg2mel import MelDecoderMOLv2
|
||||
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):
|
||||
|
@ -138,10 +137,6 @@ def main():
|
|||
parser = get_parser()
|
||||
args = parser.parse_args()
|
||||
convert(args)
|
||||
# Setup a tunnel to the streamlit port 2023
|
||||
|
||||
public_url = ngrok.connect(port="2023")
|
||||
print(public_url)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
5
web.py
5
web.py
|
@ -1,6 +1,7 @@
|
|||
import os
|
||||
import sys
|
||||
import typer
|
||||
from pyngrok import ngrok
|
||||
|
||||
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.
|
||||
"""
|
||||
# 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
|
||||
# This is required to resolve the opyrator path
|
||||
sys.path.append(os.getcwd())
|
||||
|
|
Loading…
Reference in New Issue