Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from langchain_together import Together
|
|
11 |
from footer import footer
|
12 |
|
13 |
# Set the Streamlit page configuration and theme
|
14 |
-
st.set_page_config(page_title="
|
15 |
|
16 |
# Display the logo image
|
17 |
col1, col2, col3 = st.columns([1, 30, 1])
|
@@ -46,7 +46,7 @@ db_retriever = db.as_retriever(search_type="similarity", search_kwargs={"k": 3})
|
|
46 |
|
47 |
prompt_template = """
|
48 |
<s>[INST]
|
49 |
-
As a legal chatbot specializing in the Indian
|
50 |
- Respond in a bullet-point format to clearly delineate distinct aspects of the legal query.
|
51 |
- Each point should accurately reflect the breadth of the legal provision in question, avoiding over-specificity unless directly relevant to the user's query.
|
52 |
- Clarify the general applicability of the legal rules or sections mentioned, highlighting any common misconceptions or frequently misunderstood aspects.
|
@@ -94,7 +94,7 @@ for message in st.session_state.messages:
|
|
94 |
st.write(message["content"])
|
95 |
|
96 |
|
97 |
-
input_prompt = st.chat_input("
|
98 |
if input_prompt:
|
99 |
with st.chat_message("user"):
|
100 |
st.markdown(f"**You:** {input_prompt}")
|
|
|
11 |
from footer import footer
|
12 |
|
13 |
# Set the Streamlit page configuration and theme
|
14 |
+
st.set_page_config(page_title="GST Law Guide", layout="centered")
|
15 |
|
16 |
# Display the logo image
|
17 |
col1, col2, col3 = st.columns([1, 30, 1])
|
|
|
46 |
|
47 |
prompt_template = """
|
48 |
<s>[INST]
|
49 |
+
As a legal chatbot specializing in the Indian GST Law, you are tasked with providing highly accurate and contextually appropriate responses. Ensure your answers meet these criteria:
|
50 |
- Respond in a bullet-point format to clearly delineate distinct aspects of the legal query.
|
51 |
- Each point should accurately reflect the breadth of the legal provision in question, avoiding over-specificity unless directly relevant to the user's query.
|
52 |
- Clarify the general applicability of the legal rules or sections mentioned, highlighting any common misconceptions or frequently misunderstood aspects.
|
|
|
94 |
st.write(message["content"])
|
95 |
|
96 |
|
97 |
+
input_prompt = st.chat_input("Ask something...")
|
98 |
if input_prompt:
|
99 |
with st.chat_message("user"):
|
100 |
st.markdown(f"**You:** {input_prompt}")
|