hashirehtisham commited on
Commit
6f10b82
·
verified ·
1 Parent(s): cc26619

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import streamlit as st
2
  from ai71 import AI71
3
 
4
  # Access the API key from Streamlit secrets
@@ -9,7 +9,7 @@ client = AI71(ai71_api_key)
9
 
10
  # Set page config with title and favicon
11
  st.set_page_config(
12
- page_title="AI Lawyer 🧑‍⚖️",
13
  page_icon="assets/lawyer_icon.png", # Replace with your favicon path
14
  )
15
 
@@ -43,10 +43,10 @@ st.markdown(
43
 
44
  # Sidebar
45
  st.sidebar.write("""
46
- **AI Lawyer** is your intelligent assistant for legal advice and information. Powered by advanced AI technology, AI Lawyer helps you understand legal matters by providing detailed insights and potential solutions. Whether you have questions about contracts, disputes, or legal procedures, AI Lawyer is here to assist you.
47
  """)
48
 
49
- st.sidebar.header("How to Use AI Lawyer")
50
  st.sidebar.write("""
51
  1. **Enter Your Legal Question**:
52
  - Provide your legal query or describe the legal issue you are experiencing.
@@ -55,16 +55,16 @@ st.sidebar.write("""
55
  - Use the input field at the bottom of the page to enter your query.
56
 
57
  3. **Get a Response**:
58
- - AI Lawyer will process your input and generate a detailed response with relevant legal information and advice.
59
 
60
  4. **Review and Take Action**:
61
- - Read the response provided by AI Lawyer and follow the suggested advice. Consult with a legal professional for further assistance if needed.
62
  """)
63
 
64
  # Show title and description.
65
- st.markdown('<h1 class="title">AI Lawyer 🧑‍⚖️</h1>', unsafe_allow_html=True)
66
  st.write(
67
- "This is your AI Lawyer that uses the AI71 model to provide legal advice and information."
68
  )
69
 
70
  # Initialize session state variables if not already set
@@ -73,7 +73,7 @@ if "messages" not in st.session_state:
73
  st.session_state.max_tokens = 512
74
  st.session_state.temperature = 0.7
75
  st.session_state.top_p = 0.95
76
- instruction = "Hi! This is your AI Lawyer 🧑‍⚖️. Please describe your legal question or issue. For example: 'I need help understanding a contract clause.'"
77
  st.session_state.messages.append({"role": "assistant", "content": instruction})
78
 
79
  # Display the existing chat messages via st.chat_message.
 
1
+ \import streamlit as st
2
  from ai71 import AI71
3
 
4
  # Access the API key from Streamlit secrets
 
9
 
10
  # Set page config with title and favicon
11
  st.set_page_config(
12
+ page_title="Legal Ease 🧑‍⚖️",
13
  page_icon="assets/lawyer_icon.png", # Replace with your favicon path
14
  )
15
 
 
43
 
44
  # Sidebar
45
  st.sidebar.write("""
46
+ **Legal Ease** is your intelligent assistant for legal advice and information. Powered by advanced AI technology, Legal Ease helps you understand legal matters by providing detailed insights and potential solutions. Whether you have questions about contracts, disputes, or legal procedures, Legal Ease is here to assist you.
47
  """)
48
 
49
+ st.sidebar.header("How to Use Legal Ease")
50
  st.sidebar.write("""
51
  1. **Enter Your Legal Question**:
52
  - Provide your legal query or describe the legal issue you are experiencing.
 
55
  - Use the input field at the bottom of the page to enter your query.
56
 
57
  3. **Get a Response**:
58
+ - Legal Ease will process your input and generate a detailed response with relevant legal information and advice.
59
 
60
  4. **Review and Take Action**:
61
+ - Read the response provided by Legal Ease and follow the suggested advice. Consult with a legal professional for further assistance if needed.
62
  """)
63
 
64
  # Show title and description.
65
+ st.markdown('<h1 class="title">Legal Ease 🧑‍⚖️</h1>', unsafe_allow_html=True)
66
  st.write(
67
+ "This is your Legal Ease that uses the AI71 model to provide legal advice and information."
68
  )
69
 
70
  # Initialize session state variables if not already set
 
73
  st.session_state.max_tokens = 512
74
  st.session_state.temperature = 0.7
75
  st.session_state.top_p = 0.95
76
+ instruction = "Hi! This is your Legal Ease 🧑‍⚖️. Please describe your legal question or issue. For example: 'I need help understanding a contract clause.'"
77
  st.session_state.messages.append({"role": "assistant", "content": instruction})
78
 
79
  # Display the existing chat messages via st.chat_message.