File size: 567 Bytes
f55d589 | 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 | """Main entry point. Launches the Gradio app."""
from __future__ import annotations
import logging
from ui.app import build_app
def main() -> None:
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s | %(levelname)s | %(name)s | %(message)s",
)
from ui.theme import THEME_CSS, build_theme
app = build_app()
app.queue(max_size=8).launch(
server_name="0.0.0.0",
server_port=7860,
show_error=True,
theme=build_theme(),
css=THEME_CSS,
)
if __name__ == "__main__":
main()
|