Spaces:
Running
Running
File size: 559 Bytes
1ed6720 a4afe51 1ed6720 a4afe51 1ed6720 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
"""
main.py
This module is the entry point for the app. It loads configuration and starts the Gradio app.
"""
# Local Application Imports
from src.app import App
from src.config import Config, logger
from src.database import init_db
if __name__ == "__main__":
config = Config.get()
logger.info("Launching TTS Arena Gradio app...")
db_session_maker = init_db(config)
app = App(config, db_session_maker)
demo = app.build_gradio_interface()
init_db(config)
demo.launch(server_name="0.0.0.0", allowed_paths=[str(config.audio_dir)])
|