Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,11 @@ all = load_dataset("raminass/opinions-94-23")
|
|
13 |
|
14 |
df = pd.DataFrame(all["train"])
|
15 |
choices = []
|
16 |
-
|
|
|
|
|
|
|
|
|
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 |
+
percuriams = df[df.type == "per_curiam"]
|
17 |
+
percuriams["case_name"] = percuriams["case_name"].apply(lambda x: x.strip())
|
18 |
+
percuriams = percuriams.sort_values(by="case_name", key=lambda x: x.str.lower())
|
19 |
+
|
20 |
+
for index, row in percuriams.iterrows():
|
21 |
if len(row["text"]) > 1000:
|
22 |
choices.append((f"""{row["case_name"]}""", [row["text"], row["year"]]))
|
23 |
|