AItool commited on
Commit
cbff74d
·
verified ·
1 Parent(s): 48b118f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -5
main.py CHANGED
@@ -13,9 +13,7 @@ def index():
13
  Card('A Fancy Card :)')
14
  )
15
 
16
-
17
-
18
  if __name__ == "__main__":
19
-
20
- # Correct way to launch
21
- serve()
 
13
  Card('A Fancy Card :)')
14
  )
15
 
 
 
16
  if __name__ == "__main__":
17
+ import uvicorn
18
+ # run the FastHTML app directly, no reload
19
+ uvicorn.run(app, host="0.0.0.0", port=7860, reload=False)