32 lines
688 B
Python
32 lines
688 B
Python
#!/usr/bin/env python3
|
|
from dotenv import load_dotenv
|
|
|
|
from nicegui import ui
|
|
|
|
from pages.page_main import MainPage
|
|
import logging
|
|
|
|
logging.basicConfig(
|
|
level=logging.INFO,
|
|
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
|
)
|
|
logging.getLogger('watchfiles').setLevel(logging.WARNING)
|
|
|
|
load_dotenv()
|
|
|
|
# Run the application
|
|
if __name__ in {"__main__", "__mp_main__"}:
|
|
@ui.page('/')
|
|
async def _():
|
|
ui.query('.nicegui-content').classes('p-0')
|
|
(await MainPage.create(ui.column)).classes('w-full h-screen mx-auto p-0')
|
|
|
|
|
|
ui.run(
|
|
title='LivingAgents',
|
|
favicon='🔒',
|
|
show=False,
|
|
dark=False,
|
|
port=8080
|
|
)
|