Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def get_summary(text):
|
|
52 |
Other opinions (if there are any dissenting or concurring opinions, summarize majority opinion, dissenting opinion and concurring opinion).
|
53 |
Cases cited (which cases the court cited and how it treated them).
|
54 |
Here is the text of the court decision: {text}''',
|
55 |
-
stream=
|
56 |
return response
|
57 |
|
58 |
tab1, tab2, tab3 = st.tabs(["Summarize a case", "Find a case by facts", "Analyze a court brief"])
|
@@ -69,7 +69,10 @@ with tab1:
|
|
69 |
st.write(text)
|
70 |
summary = get_summary(text)
|
71 |
#st.write(response)
|
72 |
-
|
|
|
|
|
|
|
73 |
#for chunk in summary:
|
74 |
#st.write(chunk.text)
|
75 |
#st.write("_"*80)
|
|
|
52 |
Other opinions (if there are any dissenting or concurring opinions, summarize majority opinion, dissenting opinion and concurring opinion).
|
53 |
Cases cited (which cases the court cited and how it treated them).
|
54 |
Here is the text of the court decision: {text}''',
|
55 |
+
stream=True)
|
56 |
return response
|
57 |
|
58 |
tab1, tab2, tab3 = st.tabs(["Summarize a case", "Find a case by facts", "Analyze a court brief"])
|
|
|
69 |
st.write(text)
|
70 |
summary = get_summary(text)
|
71 |
#st.write(response)
|
72 |
+
for chunk in summary:
|
73 |
+
print(chunk.text)
|
74 |
+
print("_"*80)
|
75 |
+
#st.write(summary)
|
76 |
#for chunk in summary:
|
77 |
#st.write(chunk.text)
|
78 |
#st.write("_"*80)
|