Spaces:
Build error
Build error
Regino commited on
Commit ·
fee8ffb
1
Parent(s): 4c69665
jsbdf
Browse files123456782 unmodified lines1112139101112141516import nltk
# Ensure the necessary tokenizer is downloadednltk.download("punkt")
import streamlit as stimport fitz # PyMuPDF for PDF extractionimport re2 unmodified linesfrom sumy.summarizers.lsa import LsaSummarizerfrom rouge_score import rouge_scorer # For ROUGE score evaluation
import nltk
# Ensure the necessary tokenizer is downloadednltk.download("punkt")
# Function to extract text from PDFdef extract_text_from_pdf(uploaded_file):app.py+5-4