Spaces:
Runtime error
Runtime error
Add application file
Browse files
app.py
CHANGED
|
@@ -103,12 +103,6 @@ def clean_text(text):
|
|
| 103 |
|
| 104 |
return text.strip()
|
| 105 |
|
| 106 |
-
# using the function on the text_per_page_1 dictionary
|
| 107 |
-
for key, value in text_per_pagy.items():
|
| 108 |
-
cleaned_text = clean_text(' '.join(value[0])) # value[0] contains the text
|
| 109 |
-
text_per_pagy[key] = cleaned_text
|
| 110 |
-
|
| 111 |
-
# Now text_per_pagy is clean
|
| 112 |
|
| 113 |
def extract_abstract(text_per_pagy):
|
| 114 |
abstract_text = ""
|
|
|
|
| 103 |
|
| 104 |
return text.strip()
|
| 105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
def extract_abstract(text_per_pagy):
|
| 108 |
abstract_text = ""
|