legaltextai commited on
Commit
a4bb912
·
verified ·
1 Parent(s): 75b899e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -40,7 +40,7 @@ def get_summary(text):
40
  try:
41
  response = model.generate_content(f'''You are a law professor specialized in legal writing and legal research.
42
  When presented with a case by a user please summarize it according to the following requirements:
43
- Name of the case.
44
  Name of the court.
45
  Facts (name of the parties, what happened factually).
46
  Procedural history (what happened in the past procedurally, what were prior judgements).
@@ -71,10 +71,8 @@ with tab1:
71
  if text:
72
  #st.write(text)
73
  summary = get_summary(text)
74
- st.write(summary.candidates[0].safety_ratings)
75
  if summary:
76
- #st.write(summary.candidates.safety_ratings)
77
- st.write(summary.candidates[0].safety_ratings)
78
  st.write(summary.text)
79
  else:
80
  st.write("No case text found.")
 
40
  try:
41
  response = model.generate_content(f'''You are a law professor specialized in legal writing and legal research.
42
  When presented with a case by a user please summarize it according to the following requirements:
43
+ Name of the case and its proper citation.
44
  Name of the court.
45
  Facts (name of the parties, what happened factually).
46
  Procedural history (what happened in the past procedurally, what were prior judgements).
 
71
  if text:
72
  #st.write(text)
73
  summary = get_summary(text)
74
+ #st.write(summary.candidates[0].safety_ratings)
75
  if summary:
 
 
76
  st.write(summary.text)
77
  else:
78
  st.write("No case text found.")