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