Skip to content

Commit

Permalink
Added basic about page
Browse files Browse the repository at this point in the history
  • Loading branch information
fccoelho committed Jul 18, 2024
1 parent 512e2c9 commit 62d7f76
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion reggui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,38 @@ def on_dataset_selection(event):
return page.settings_form


def build_about_page(page):
about_page = ft.Container(
content=ft.ResponsiveRow(
controls=[
ft.Column(
col=6,
controls=[ft.Markdown("""
# About Reggie D. Bot
Reggie D. Bot is a database AI expert that can help you explore your data.
He is powered by the RegDBot library, which is a Python package that provides a
natural language interface to databases.
Reggie is built using the Flet web framework, which allows you to build web applications with Python. Reggie can help you with a wide
range of tasks, such as querying databases, generating reports, and even creating visualizations.
Reggie is designed by [Deeplearn](www.deeplearn.ltd) to be easy to use and flexible, so you can customize him to suit your needs.
If you have any questions or feedback, please feel free to reach out to us. We're always happy to help!
""",
extension_set=ft.MarkdownExtensionSet.GITHUB_WEB
)]),
ft.Column(col=6,
controls=[
ft.Image(src="/images/reggie.png", fit=ft.ImageFit.CONTAIN)
])]
),
padding=20
)
return about_page


async def start_reg(page):
page.RDB = Reggie(model="gpt")

Expand Down Expand Up @@ -232,7 +264,7 @@ async def route_change(route):
"/about",
[
page.appbar,
ft.Text("About page"),
build_about_page(page),
page.nav_bar
],
scroll=ft.ScrollMode.AUTO
Expand Down

0 comments on commit 62d7f76

Please sign in to comment.