Spaces:
Running
Running
| --- a/app.py | |
| +++ b/app.py | |
| if __name__ == "__main__": | |
| - main() | |
| + main() | |
| \ No newline at end of file | |
| --- a/modules/pdf_processor.py | |
| +++ b/modules/pdf_processor.py | |
| "The extracted text is very short. Please check if the PDF contains readable text." | |
| ) | |
| - return processed_text | |
| + return processed_text | |
| \ No newline at end of file | |
| --- a/modules/text_summarizer.py | |
| +++ b/modules/text_summarizer.py | |
| ) | |
| return None | |
| except Exception as e: | |
| - st.error(f"❌ Unexpected error during summarization: {str(e)}") | |
| - return None | |
| + st.error(f"❌ Unexpected error during summarization: {str(e)}") | |
| + return None | |
| \ No newline at end of file | |
| --- a/modules/utils.py | |
| +++ b/modules/utils.py | |
| b64 = base64.b64encode(content.encode()).decode() | |
| href = f'<a href="data:text/plain;base64,{b64}" download="{filename}">Download Summary</a>' | |
| - return href | |
| + return href | |
| \ No newline at end of file | |
| --- a/run.py | |
| +++ b/run.py | |
| if __name__ == "__main__": | |
| - main() | |
| + main() | |
| \ No newline at end of file | |
| --- a/setup.py | |
| +++ b/setup.py | |
| "ai-notes-summarizer=app:main", | |
| ], | |
| }, | |
| -) | |
| +) | |
| \ No newline at end of file | |
| --- a/test_basic.py | |
| +++ b/test_basic.py | |
| if __name__ == "__main__": | |
| success = main() | |
| - sys.exit(0 if success else 1) | |
| + sys.exit(0 if success else 1) | |
| \ No newline at end of file |