jlopez00's picture
Upload folder using huggingface_hub
c6fd5b2 verified
raw
history blame
558 Bytes
import sys
from pathlib import Path
import yaml
def setup_logging():
path = Path("logging.yml")
if not path.exists():
return
with path.open() as f:
from logging.config import dictConfig
dictConfig(yaml.safe_load(f))
def launch_gradio():
setup_logging()
from tts_service.app import app
app.queue(status_update_rate=1).launch(
favicon_path="tts_service/ICON.ico",
share="--share" in sys.argv,
inbrowser="--open" in sys.argv,
)
if __name__ == "__main__":
launch_gradio()