init
This commit is contained in:
22
main.py
Normal file
22
main.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from nicegui import ui
|
||||
|
||||
from pages.page_main import MainPage
|
||||
|
||||
load_dotenv()
|
||||
|
||||
# Run the application
|
||||
if __name__ in {"__main__", "__mp_main__"}:
|
||||
@ui.page('/')
|
||||
async def _():
|
||||
await MainPage.create()
|
||||
|
||||
ui.run(
|
||||
title='LivingAgents',
|
||||
favicon='🔒',
|
||||
show=False,
|
||||
dark=False,
|
||||
port=8080
|
||||
)
|
||||
Reference in New Issue
Block a user