-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHomepage.py
27 lines (22 loc) · 1.29 KB
/
Homepage.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import streamlit as st
def main():
st.set_page_config(
page_title="Project M",
page_icon="👋",
)
st.title("Ask Your Database")
st.markdown("###### Welcome to Ask Your Database! This project comprises two powerful components designed "
"to simplify database querying and SQL generation through natural language interaction.")
st.markdown("## Overview")
st.markdown("Our project aims to revolutionize the way you interact with your MySQL or PostgreSQL databases by "
"leveraging the power of AI. It includes two main components:")
st.markdown("1. **Chat with Database**: An interactive chat application that allows you to query your localhost "
"MySQL or"
"PostgreSQL database using natural language. This component translates your questions into SQL "
"queries, executes them, and returns the results in an easy-to-understand format.")
st.markdown("2. **Text to SQL Translator**: A tool that accepts English prompts and returns the corresponding SQL "
"queries. This component is ideal for users who need to generate SQL queries without writing them "
"manually.")
st.sidebar.success("Select a page above.")
if __name__ == '__main__':
main()