Johan713 commited on
Commit
fbe7a3a
·
verified ·
1 Parent(s): cae372c

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +7 -4
app2.py CHANGED
@@ -237,7 +237,7 @@ def comprehensive_document_analysis(content: str) -> Dict[str, Any]:
237
  document_analysis = get_ai_response(analysis_prompt)
238
 
239
  # Extract main topics or keywords from the document
240
- topic_extraction_prompt = f"Extract the main topics or keywords from the following document summary:\n\n{document_analysis}"
241
  topics = get_ai_response(topic_extraction_prompt)
242
 
243
  web_results = search_web(topics)
@@ -1406,6 +1406,8 @@ class LegalDataRetriever:
1406
 
1407
  def case_info_retriever():
1408
  st.subheader("Case Information Retriever")
 
 
1409
  query = st.text_input("Enter case name, number, or any relevant information:")
1410
  if st.button("Retrieve Case Information"):
1411
  with st.spinner("Retrieving case information..."):
@@ -1527,7 +1529,7 @@ def generate_legal_brief(case_info):
1527
 
1528
  def automated_legal_brief_generation_ui():
1529
  st.title("Automated Legal Brief Generation")
1530
- st.expander(How to use"):
1531
  st.write('''Enter the case details and based on that it will generate a legal brief and also provide you with the proper analysis of the case and how you can win this case and where you have to be carefull''')
1532
  if 'legal_brief' not in st.session_state:
1533
  st.session_state.legal_brief = ""
@@ -1805,7 +1807,7 @@ def lawyer_finder_ui():
1805
  else:
1806
  st.warning(f"No lawyers found in {city}, {state}. Try selecting a different city or state.")
1807
 
1808
- # --- Streamlit App ---
1809
  st.markdown("""
1810
  <style>
1811
  .reportview-container {
@@ -1945,7 +1947,8 @@ elif feature == "Document Analysis":
1945
 
1946
  elif feature == "Case Precedent Finder":
1947
  st.subheader("Case Precedent Finder")
1948
-
 
1949
  if 'precedents' not in st.session_state:
1950
  st.session_state.precedents = None
1951
 
 
237
  document_analysis = get_ai_response(analysis_prompt)
238
 
239
  # Extract main topics or keywords from the document
240
+ topic_extraction_prompt = f"Extract the main topic or keyword from the following document summary:\n\n{document_analysis}"
241
  topics = get_ai_response(topic_extraction_prompt)
242
 
243
  web_results = search_web(topics)
 
1406
 
1407
  def case_info_retriever():
1408
  st.subheader("Case Information Retriever")
1409
+ st.expander("How to use Case Information Retriever")
1410
+ st.write('''keep the user imput as short as possible''')
1411
  query = st.text_input("Enter case name, number, or any relevant information:")
1412
  if st.button("Retrieve Case Information"):
1413
  with st.spinner("Retrieving case information..."):
 
1529
 
1530
  def automated_legal_brief_generation_ui():
1531
  st.title("Automated Legal Brief Generation")
1532
+ st.expander("How to use"):
1533
  st.write('''Enter the case details and based on that it will generate a legal brief and also provide you with the proper analysis of the case and how you can win this case and where you have to be carefull''')
1534
  if 'legal_brief' not in st.session_state:
1535
  st.session_state.legal_brief = ""
 
1807
  else:
1808
  st.warning(f"No lawyers found in {city}, {state}. Try selecting a different city or state.")
1809
 
1810
+ # Streamlit App
1811
  st.markdown("""
1812
  <style>
1813
  .reportview-container {
 
1947
 
1948
  elif feature == "Case Precedent Finder":
1949
  st.subheader("Case Precedent Finder")
1950
+ st.expander("How to use Case Precedent Finder")
1951
+ st.write('''keep the prompt as short as possible''')
1952
  if 'precedents' not in st.session_state:
1953
  st.session_state.precedents = None
1954