hashirehtisham commited on
Commit
6f22dc8
1 Parent(s): 361758a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -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="LegalEase 🧑‍⚖️",
13
  page_icon="assets/lawyer_icon.png", # Replace with your favicon path
14
  )
15
 
@@ -58,10 +58,10 @@ st.markdown(
58
 
59
  # Sidebar
60
  st.sidebar.write("""
61
- **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.
62
  """)
63
 
64
- st.sidebar.header("How to Use Legal Ease")
65
  st.sidebar.write("""
66
  1. **Enter Your Legal Question**:
67
  - Provide your legal query or describe the legal issue you are experiencing.
@@ -70,16 +70,16 @@ st.sidebar.write("""
70
  - Use the input field at the bottom of the page to enter your query.
71
 
72
  3. **Get a Response**:
73
- - Legal Ease will process your input and generate a detailed response with relevant legal information and advice.
74
 
75
  4. **Review and Take Action**:
76
- - Read the response provided by Legal Ease and follow the suggested advice. Consult with a legal professional for further assistance if needed.
77
  """)
78
 
79
  # Show title and description.
80
- st.markdown('<h1 class="title">Legal Ease 🧑‍⚖️</h1>', unsafe_allow_html=True)
81
  st.write(
82
- "This is your Legal Ease that uses the AI71 model to provide legal advice and information."
83
  )
84
 
85
  # Initialize session state variables if not already set
@@ -88,7 +88,7 @@ if "messages" not in st.session_state:
88
  st.session_state.max_tokens = 512
89
  st.session_state.temperature = 0.7
90
  st.session_state.top_p = 0.95
91
- instruction = ("<span class='initial-message'>Hi! This is your Legal Ease 🧑‍⚖️. "
92
  "Please describe your legal question or issue. For example: 'I need help "
93
  "understanding a contract clause.'</span>")
94
  st.session_state.messages.append({"role": "assistant", "content": instruction})
 
9
 
10
  # Set page config with title and favicon
11
  st.set_page_config(
12
+ page_title="LegalMind 🧑‍⚖️",
13
  page_icon="assets/lawyer_icon.png", # Replace with your favicon path
14
  )
15
 
 
58
 
59
  # Sidebar
60
  st.sidebar.write("""
61
+ **Legal Mind** is your intelligent assistant for legal advice and information. Powered by advanced AI technology, Legal Mind helps you understand legal matters by providing detailed insights and potential solutions. Whether you have questions about contracts, disputes, or legal procedures, Legal Mind is here to assist you.
62
  """)
63
 
64
+ st.sidebar.header("How to Use Legal Mind")
65
  st.sidebar.write("""
66
  1. **Enter Your Legal Question**:
67
  - Provide your legal query or describe the legal issue you are experiencing.
 
70
  - Use the input field at the bottom of the page to enter your query.
71
 
72
  3. **Get a Response**:
73
+ - Legal Mind will process your input and generate a detailed response with relevant legal information and advice.
74
 
75
  4. **Review and Take Action**:
76
+ - Read the response provided by Legal Mind and follow the suggested advice. Consult with a legal professional for further assistance if needed.
77
  """)
78
 
79
  # Show title and description.
80
+ st.markdown('<h1 class="title">Legal Mind 🧑‍⚖️</h1>', unsafe_allow_html=True)
81
  st.write(
82
+ "This is your Legal Mind that uses the AI71 model to provide legal advice and information."
83
  )
84
 
85
  # Initialize session state variables if not already set
 
88
  st.session_state.max_tokens = 512
89
  st.session_state.temperature = 0.7
90
  st.session_state.top_p = 0.95
91
+ instruction = ("<span class='initial-message'>Hi! This is your Legal Mind 🧑‍⚖️. "
92
  "Please describe your legal question or issue. For example: 'I need help "
93
  "understanding a contract clause.'</span>")
94
  st.session_state.messages.append({"role": "assistant", "content": instruction})