Skip to content

Commit

Permalink
Chat UI (#53)
Browse files Browse the repository at this point in the history
* Update streamlit in requirements.

* Update logo in application and text.

* Add main README logo.

* Add logo.

* Add logos and static text.

* Add logo svgs.
  • Loading branch information
milistu authored Jun 3, 2024
1 parent e28f20b commit ca08773
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Legal ChatBot 👩‍⚖️

![LegaBot Logo](https://github.com/milistu/LegaBot/blob/main/assets/Legabot-Light-Vertical.svg "LegaBot Logo")

Legal ChatBot is an innovative project designed to assist users in navigating the complex world of legal documents.

Utilizing a combination of RAG (Retrieval-Augmented Generation) technology and a deep knowledge base of law articles, this bot can intelligently reference relevant legal texts during interactions. It offers an interactive platform for querying legal information, making it a valuable tool for professionals, students, and anyone needing quick insights into legal matters.
Expand Down
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
QUERY_SUGGESTIONS,
AUTHORS,
LOGO_URL,
LOGO_TEXT_URL,
)

# Load environment variables from the .env file.
Expand All @@ -26,7 +27,7 @@
config = load_config()

# Display the logo and set up the sidebar with useful information and links.
st.logo(LOGO_URL, icon_image=LOGO_URL)
st.logo(LOGO_TEXT_URL, icon_image=LOGO_URL)
with st.sidebar:
st.subheader("💡 Query Suggestions")
with st.container(border=True, height=200):
Expand All @@ -50,7 +51,7 @@
st.markdown(message["content"])

# Handle user input and generate responses.
if prompt := st.chat_input("Postavi pitanje iz prava..."):
if prompt := st.chat_input("Postavi pitanje vezano za pravo..."):
# Append user message to session state.
st.session_state.messages.append({"role": "user", "content": prompt})

Expand Down
16 changes: 16 additions & 0 deletions assets/Legabot-Dark-Typography.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions assets/Legabot-Light-Horizontal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ca08773

Please sign in to comment.