vishalbakshi commited on
Commit
dca4383
·
verified ·
1 Parent(s): 6462d5a

deploy at 2024-08-23 21:37:32.231598

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -1,5 +1,5 @@
1
  from fasthtml_hf import setup_hf_backup
2
- from fasthtml.common import FastHTML, Div, P, serve
3
  #from fastai.vision.all import * # Uncomment this when you're ready to use fastai
4
  #import uvicorn
5
 
@@ -18,8 +18,8 @@ setup_hf_backup(app)
18
  # uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=True)
19
 
20
  # Alternatively, try using serve() if uvicorn doesn't work
21
- serve()
22
-
23
 
24
 
25
  # from fasthtml_hf import setup_hf_backup
 
1
  from fasthtml_hf import setup_hf_backup
2
+ from fasthtml.common import FastHTML, Div, P, serve as fasthtml_serve
3
  #from fastai.vision.all import * # Uncomment this when you're ready to use fastai
4
  #import uvicorn
5
 
 
18
  # uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=True)
19
 
20
  # Alternatively, try using serve() if uvicorn doesn't work
21
+ #serve()
22
+ fasthtml_serve()
23
 
24
 
25
  # from fasthtml_hf import setup_hf_backup