thomasht86 commited on
Commit
985aeb8
·
verified ·
1 Parent(s): eb50ce3

deploy at 2024-08-22 14:32:12.927416

Browse files
Files changed (1) hide show
  1. main.py +8 -1
main.py CHANGED
@@ -663,6 +663,13 @@ def get_source(auth, sess):
663
 
664
  @app.get("/about")
665
  def get_about(auth, sess):
 
 
 
 
 
 
 
666
  return (
667
  Title("About this app"),
668
  get_navbar(auth),
@@ -676,7 +683,7 @@ def get_about(auth, sess):
676
  style="margin: 10px;",
677
  ),
678
  Div(
679
- """# About this app \n We wanted to see if we could build a simple search interface using Vespa and fastHTML. This is the result!""",
680
  cls="marked",
681
  style="margin: 10px;",
682
  ),
 
663
 
664
  @app.get("/about")
665
  def get_about(auth, sess):
666
+ with open("README.md") as f:
667
+ readme = f.read()
668
+ # Strip everything before the FIRST # in the README
669
+ stripped_readme = re.sub(
670
+ r"^.*?(?=# FastHTML Vespa frontend)", "", readme, flags=re.DOTALL
671
+ )
672
+
673
  return (
674
  Title("About this app"),
675
  get_navbar(auth),
 
683
  style="margin: 10px;",
684
  ),
685
  Div(
686
+ stripped_readme,
687
  cls="marked",
688
  style="margin: 10px;",
689
  ),