Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ def scrape00(instring, page_num):
|
|
26 |
number_of_pages = len(reader.pages)
|
27 |
page = reader.pages[int(page_num)-1]
|
28 |
text = page.extract_text()
|
|
|
29 |
try:
|
30 |
summarizer = gr.Interface.load("huggingface/facebook/bart-large-cnn")
|
31 |
sum_out = summarizer(text)
|
|
|
26 |
number_of_pages = len(reader.pages)
|
27 |
page = reader.pages[int(page_num)-1]
|
28 |
text = page.extract_text()
|
29 |
+
print (text)
|
30 |
try:
|
31 |
summarizer = gr.Interface.load("huggingface/facebook/bart-large-cnn")
|
32 |
sum_out = summarizer(text)
|