raminass commited on
Commit
9eb8000
·
verified ·
1 Parent(s): 3fd9ab6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ all = load_dataset("raminass/opinions-94-23")
13
 
14
  df = pd.DataFrame(all["train"])
15
  choices = []
16
- for index, row in df[df.type == "per_curiam"].iterrows():
17
  if len(row["text"]) > 1000:
18
  choices.append((f"""{row["case_name"]}""", [row["text"], row["year"]]))
19
 
 
13
 
14
  df = pd.DataFrame(all["train"])
15
  choices = []
16
+ for index, row in df[df.type == "per_curiam"].sort_values("case_name").iterrows():
17
  if len(row["text"]) > 1000:
18
  choices.append((f"""{row["case_name"]}""", [row["text"], row["year"]]))
19