Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def extract_organization_name(text):
|
|
| 28 |
# Extract titles or identifiers for the ToS
|
| 29 |
#tos_titles = [f"Document {i}" for i in range(len(dataset['train']))]
|
| 30 |
|
| 31 |
-
tos_titles = [extract_organization_name(doc['
|
| 32 |
|
| 33 |
|
| 34 |
# Set page to wide mode
|
|
|
|
| 28 |
# Extract titles or identifiers for the ToS
|
| 29 |
#tos_titles = [f"Document {i}" for i in range(len(dataset['train']))]
|
| 30 |
|
| 31 |
+
tos_titles = [extract_organization_name(doc['plain_text']) for doc in dataset['train']]
|
| 32 |
|
| 33 |
|
| 34 |
# Set page to wide mode
|