jlopez00's picture
Upload folder using huggingface_hub
2c01ee6 verified
raw
history blame
553 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="assets/ICON.ico",
share="--share" in sys.argv,
inbrowser="--open" in sys.argv,
)
if __name__ == "__main__":
launch_gradio()