Spaces:
Build error
Build error
legaltextai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -65,19 +65,10 @@ with tab1:
|
|
65 |
|
66 |
if search_query:
|
67 |
with st.spinner("Searching for cases..."):
|
68 |
-
|
69 |
-
|
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 |
-
|
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)
|