Spaces:
Running
Running
Update app.py
Browse files
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 |
|