Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -171,9 +171,7 @@ def find_sentences_with_keywords(text, keywords):
|
|
171 |
# Main function to process both PDFs based on the Excel file names and the sheet name
|
172 |
def process_pdfs_and_analyze_sentiment(file1, file2, sheet):
|
173 |
# Extract text from both PDFs based on the file name
|
174 |
-
text1 =
|
175 |
-
text2 = extract_text_from_pdf(file2)
|
176 |
-
|
177 |
# Use sheet name as the keyword to find relevant sentences
|
178 |
keywords = {
|
179 |
'GDP': ['GDP'],
|
|
|
171 |
# Main function to process both PDFs based on the Excel file names and the sheet name
|
172 |
def process_pdfs_and_analyze_sentiment(file1, file2, sheet):
|
173 |
# Extract text from both PDFs based on the file name
|
174 |
+
text1, text2 =extract_and_paragraph(file1, file2, False)
|
|
|
|
|
175 |
# Use sheet name as the keyword to find relevant sentences
|
176 |
keywords = {
|
177 |
'GDP': ['GDP'],
|