legaltextai commited on
Commit
b0c231f
·
verified ·
1 Parent(s): e993e91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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=False)
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
- st.write(summary)
 
 
 
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)