AItool commited on
Commit
aeb9746
·
verified ·
1 Parent(s): d1c8afa

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -2
main.py CHANGED
@@ -1,7 +1,9 @@
1
  from fasthtml.common import *
2
  from monsterui.all import *
 
3
  hdrs = Theme.blue.headers(mode='light')
4
  app, rt = fast_app(hdrs=hdrs, live=True)
 
5
  @rt
6
  def index():
7
  return Title('Hello World'), Container(
@@ -11,5 +13,5 @@ def index():
11
  Card('A Fancy Card :)')
12
  )
13
 
14
-
15
- app.serve()
 
1
  from fasthtml.common import *
2
  from monsterui.all import *
3
+
4
  hdrs = Theme.blue.headers(mode='light')
5
  app, rt = fast_app(hdrs=hdrs, live=True)
6
+
7
  @rt
8
  def index():
9
  return Title('Hello World'), Container(
 
13
  Card('A Fancy Card :)')
14
  )
15
 
16
+ # Correct way to launch
17
+ serve()