Spaces:
Runtime error
Runtime error
File size: 553 Bytes
2c01ee6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
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()
|