legaltextai commited on
Commit
788e804
·
verified ·
1 Parent(s): 03fcc4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -65,19 +65,10 @@ with tab1:
65
 
66
  if search_query:
67
  with st.spinner("Searching for cases..."):
68
- results = search_legal_cases(search_query)
69
- if results:
70
- title, link, citation = results[0]
71
- st.write("Title:\n", title)
72
- #st.write("Link:\n", link)
73
- st.write("Citation:\n", citation)
74
- #with st.spinner("Extracting text from case / Generating summary"):
75
- text = extract_text_from_link(link)
76
- #st.write(text) # Optionally display the extracted text
77
-
78
- summary = get_summary(text)
79
  #st.write(response)
80
- st.write(summary.text)
81
  #for chunk in summary:
82
  #st.write(chunk.text)
83
  #st.write("_"*80)
 
65
 
66
  if search_query:
67
  with st.spinner("Searching for cases..."):
68
+ text = extract_text_from_api(search_query)
69
+ summary = get_summary(text)
 
 
 
 
 
 
 
 
 
70
  #st.write(response)
71
+ st.write(summary.text)
72
  #for chunk in summary:
73
  #st.write(chunk.text)
74
  #st.write("_"*80)