artydev commited on
Commit
b410e7e
·
verified ·
1 Parent(s): 57b35b1

deploy at 2024-08-30 23:56:36.820903

Browse files
Files changed (1) hide show
  1. main.py +4 -1
main.py CHANGED
@@ -1,5 +1,5 @@
1
  from fasthtml.common import *
2
-
3
  app,rt = fast_app(hdrs=[HighlightJS()])
4
 
5
  @rt("/convert")
@@ -15,4 +15,7 @@ def get():
15
  Textarea(placeholder='Paste HTML here', id="html", rows=10)),
16
  Div(id="ft"))
17
 
 
 
 
18
  serve()
 
1
  from fasthtml.common import *
2
+ from fasthtml_hf import setup_hf_backup
3
  app,rt = fast_app(hdrs=[HighlightJS()])
4
 
5
  @rt("/convert")
 
15
  Textarea(placeholder='Paste HTML here', id="html", rows=10)),
16
  Div(id="ft"))
17
 
18
+
19
+
20
+ setup_hf_backup(app)
21
  serve()