Skip to content

Commit

Permalink
fix: corpora page add default header
Browse files Browse the repository at this point in the history
  • Loading branch information
engisalor committed Oct 24, 2023
1 parent 30a98f6 commit 3b32d95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pages/corpora.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@

dash.register_page(__name__)

text_file = getattr(env, "CORPORA_MD", None)
if not text_file:
main_text = html.Div(html.H2("Corpora"))
else:
main_text = MarkdownFileAIO()

layout = html.Div(
[
MarkdownFileAIO(getattr(env, "CORPORA_MD", None)),
main_text,
html.Br(),
dbc.Tabs(
[
Expand Down

0 comments on commit 3b32d95

Please sign in to comment.