Close Menu
  • AI
  • Content Creation
  • Tech
  • Robotics
AI-trends.todayAI-trends.today
  • AI
  • Content Creation
  • Tech
  • Robotics
Trending
  • How to build a Django Admin Dashboard using Custom Filters and Actions with KPIs
  • Poetiq’s Meta-System automatically builds a model-agnostic harness that improved every LLM tested on LiveCodeBench without fine-tuning
  • Who are the real losers in the Musk v. Altman Trial?
  • The Coding implementation to master GPU computing with CuPy and Custom CUDA kernels. Sparse matrices, Streams.
  • Trump’s Tech Posse, Who’s Winning Musk v. Altman and Hantavirus Conspiracy Theories
  • Meta is a hive of activity after an engineer’s post protesting laptop surveillance went viral.
  • Gen Z Is Pioneering a New Understanding of Fact
  • AI Promised the Audemars Piguet Swatch Wristwatch. China will Deliver.
AI-trends.todayAI-trends.today
Home»Tech»How to Create a Multi-Page NiceGUI App with Async Chat, CRUD Operation, Real-Time Dashboard and File Upload.

How to Create a Multi-Page NiceGUI App with Async Chat, CRUD Operation, Real-Time Dashboard and File Upload.

Tech By Gavin Wallace06/05/20261 Min Read
Facebook Twitter LinkedIn Email
Can LLMs Really Judge with Reasoning? Microsoft and Tsinghua Researchers
Can LLMs Really Judge with Reasoning? Microsoft and Tsinghua Researchers
Share
Facebook Twitter LinkedIn Email
Import Sys
Import subprocess
subprocess.run([sys.executable, "-m", "pip", "install", "-q", "nicegui"], check=True)


Asyncio import, threading time, socket, base64
Import datetime from datetime
Events imported from Nicegui




class State
   def __init__(self):
       self.todos = [
           {"id": 1, "task": "Explore NiceGUI",      "done": True,  "priority": "High"},
           {"id": 2, "task": "Build a dashboard",    "done": False, "priority": "Medium"},
           {"id": 3, "task": "Deploy to production", "done": False, "priority": "Low"},
       ]
       self.next_id = 4
       self.metrics = {"users": 1247, "revenue": 8420, "orders": 53}
       self.series = [random.uniform(20, 80) for _ in range(20)]
       self.messages = [{"role": "assistant",
                         "text": "Hi! Type something and I will echo it back."}]


State()




def page_shell(active: str) -> None:
   dark = ui.dark_mode()
   drawer = ui.left_drawer(value=True).classes("bg-grey-2")
 Drawer:
       ui.label("Navigation").classes("text-lg font-bold p-2")
       for label, path, icon in [
           ("Dashboard", "/",       "dashboard"),
           ("Todos",     "/todos",  "check_circle"),
           ("Form",      "/form",   "edit_note"),
           ("Upload",    "/upload", "upload_file"),
           ("Chat",      "/chat",   "chat"),
       ]:
 Cls "w-full" + (" bg-primary text-white" if label == active else "")
           ui.button(label,
                     on_click=lambda p=path: ui.navigate.to(p),
                     icon=icon).classes(cls).props("flat align=left no-caps")


   with ui.header(elevated=True).classes("items-center justify-between bg-primary"):
 With ui.row().classes("items-center"):
           ui.button(on_click=drawer.toggle, icon="menu").props("flat color=white")
           ui.label("🚀 NiceGUI Tutorial").classes("text-xl font-semibold text-white")
       ui.button(icon="dark_mode", on_click=dark.toggle).props("flat color=white")


 To the right of the footer, click on the ui.footer().classes("bg-grey-3 text-black justify-center"):
       ui.label("Built with NiceGUI · Tutorial Demo")
ar
Share. Facebook Twitter LinkedIn Email
Avatar
Gavin Wallace

Related Posts

How to build a Django Admin Dashboard using Custom Filters and Actions with KPIs

15/05/2026

Poetiq’s Meta-System automatically builds a model-agnostic harness that improved every LLM tested on LiveCodeBench without fine-tuning

15/05/2026

The Coding implementation to master GPU computing with CuPy and Custom CUDA kernels. Sparse matrices, Streams.

15/05/2026

Nous Analysis Releases Token Superposition Coaching to Velocity Up LLM Pre-Coaching by As much as 2.5x Throughout 270M to 10B Parameter Fashions

14/05/2026
Top News

Fans Call on Taylor Swift to ‘Do Better’ After Accusations of Using AI for Promo Videos

I’m More Hopeful about Our Collective Brain Drain After Watching a 7-Hour Film in the Theater

Some Democrats believe that AI will help the party win elections

The Home Robot that loads the dishwasher and clears tables all by itself

Anthropic’s Developer Day: AI Agents were the Stars of Anthropic Day 1

Load More
AI-Trends.Today

Your daily source of AI news and trends. Stay up to date with everything AI and automation!

X (Twitter) Instagram
Top Insights

It’s all over with the fake AI about the Iran war.

10/03/2026

YouTube improves its TV app by adding QR codes to allow shopping and AI-powered scaling.

29/10/2025
Latest News

How to build a Django Admin Dashboard using Custom Filters and Actions with KPIs

15/05/2026

Poetiq’s Meta-System automatically builds a model-agnostic harness that improved every LLM tested on LiveCodeBench without fine-tuning

15/05/2026
X (Twitter) Instagram
  • Privacy Policy
  • Contact Us
  • Terms and Conditions
© 2026 AI-Trends.Today

Type above and press Enter to search. Press Esc to cancel.