nnn
Browse files
app.py
CHANGED
|
@@ -14,10 +14,8 @@ def load_pipeline():
|
|
| 14 |
"question-answering", model="distilbert-base-uncased-distilled-squad"
|
| 15 |
)
|
| 16 |
|
| 17 |
-
|
| 18 |
Q_A = load_pipeline()
|
| 19 |
|
| 20 |
-
|
| 21 |
# Extract text from uploaded PDF
|
| 22 |
def extract_text_from_pdf(uploaded_file):
|
| 23 |
text = ""
|
|
|
|
| 14 |
"question-answering", model="distilbert-base-uncased-distilled-squad"
|
| 15 |
)
|
| 16 |
|
|
|
|
| 17 |
Q_A = load_pipeline()
|
| 18 |
|
|
|
|
| 19 |
# Extract text from uploaded PDF
|
| 20 |
def extract_text_from_pdf(uploaded_file):
|
| 21 |
text = ""
|