Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ from flask import Flask, request, jsonify, abort , render_template , send_file
|
|
| 2 |
import tsadropboxretrieval
|
| 3 |
import json
|
| 4 |
import Find_Hyperlinking_text
|
|
|
|
| 5 |
import requests
|
| 6 |
from io import BytesIO
|
| 7 |
import urllib
|
|
@@ -70,7 +71,7 @@ def receive_pdf_data():
|
|
| 70 |
print(pdfLink, keyword)
|
| 71 |
|
| 72 |
|
| 73 |
-
pdfbytes, pdf_document , df ,tablepdfoutput=
|
| 74 |
dbxTeam= tsadropboxretrieval.ADR_Access_DropboxTeam('user')
|
| 75 |
|
| 76 |
# Get metadata using the shared link
|
|
@@ -116,7 +117,7 @@ def NBSData():
|
|
| 116 |
|
| 117 |
# Now you can use the extracted pdfLink and keyword
|
| 118 |
print(pdfLink, keyword)
|
| 119 |
-
pdfbytes, pdf_document , df ,tablepdfoutput=
|
| 120 |
dbxTeam= tsadropboxretrieval.ADR_Access_DropboxTeam('user')
|
| 121 |
|
| 122 |
# Get metadata using the shared link
|
|
|
|
| 2 |
import tsadropboxretrieval
|
| 3 |
import json
|
| 4 |
import Find_Hyperlinking_text
|
| 5 |
+
import findspecsv1
|
| 6 |
import requests
|
| 7 |
from io import BytesIO
|
| 8 |
import urllib
|
|
|
|
| 71 |
print(pdfLink, keyword)
|
| 72 |
|
| 73 |
|
| 74 |
+
pdfbytes, pdf_document , df ,tablepdfoutput= findspecsv1.extract_section_under_header(pdfLink, keyword)
|
| 75 |
dbxTeam= tsadropboxretrieval.ADR_Access_DropboxTeam('user')
|
| 76 |
|
| 77 |
# Get metadata using the shared link
|
|
|
|
| 117 |
|
| 118 |
# Now you can use the extracted pdfLink and keyword
|
| 119 |
print(pdfLink, keyword)
|
| 120 |
+
pdfbytes, pdf_document , df ,tablepdfoutput= findspecsv1.extract_section_under_header(pdfLink, keyword)
|
| 121 |
dbxTeam= tsadropboxretrieval.ADR_Access_DropboxTeam('user')
|
| 122 |
|
| 123 |
# Get metadata using the shared link
|