Giter VIP home page Giter VIP logo

ahmednasser1601 / text-summarizer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 196 KB

Web application that provides text summarization functionality built using Flask for the backend and HTML, CSS, and JS for the frontend and uses the Hugging Face Transformers library.

Home Page: https://ahmednasser1601.github.io/Text-Summarizer/

License: MIT License

Python 16.73% HTML 23.44% JavaScript 18.72% CSS 41.11%
flask huggingface-transformers text-summarizer

text-summarizer's Introduction

This project is a web application that provides text summarization functionality. It allows users to input text and receive a summarized version of the input text. The application is built using Flask for the backend and HTML, CSS, and JavaScript for the frontend. It uses the Hugging Face Transformers library for text summarization.

Features

  • Summarizes input text using a pre-trained model from Hugging Face.
  • Allows users to specify minimum and maximum lengths for the summary.
  • Provides a user-friendly interface with a loading indicator.
  • Ensures that the maximum length is greater than the minimum length.

Installation

Requirements

flask
flask-cors
transformers
torch

Steps

  1. Clone the repository:
    git clone https://github.com/AhmedNasser1601/Text-Summarizer.git
    cd Text-Summarizer
  2. Install the required packages:
    pip install -r requirements.txt
  3. Run the application:
    python main.py
  4. Open your web browser and go to http://127.0.0.1:5000.

Usage

  1. Enter the text you want to summarize in the text area.
  2. Adjust the minimum and maximum lengths using the plus and minus buttons.
  3. Click the "Summarize" button.
  4. Wait for the summary to be generated. The summary will be displayed below the form.

Example

File Structure

  • main.py: The backend Flask application that handles requests and performs text summarization.
  • templates/index.html: The main HTML file that contains the structure of the web page.
  • static/main.css: The CSS file for styling the web page.
  • static/main.js: The JavaScript file that handles form submission and interacts with the backend.

Acknowledgements

  • Hugging Face for the Transformers library
  • Flask framework

Feel free to contribute to this project by creating issues or submitting pull requests.

text-summarizer's People

Contributors

ahmednasser1601 avatar sweep-ai[bot] avatar

Watchers

 avatar

Forkers

deltacodepl

text-summarizer's Issues

Sweep: Summarize the Arabic Paragraph Text

Sweep:

  • Take the Arabic text as input in the website.
  • Make Natural-Language-Processing model to collect the most repetitive and important words in the paragraph and create a summarized sentence from these words
  • Make button named "Summarize" to pass the input to the model and get the output to display it
  • Display the summarized sentence as output in the website
Checklist
  • main.py

• Add a new function named "summarize_arabic_text" that takes the input text as a parameter.
• Implement the logic to summarize the Arabic text using natural language processing techniques.
• Return the summarized sentence as the output.

  • main.js

• Add an event listener to the "Summarize" button to handle the click event.
• Retrieve the input text from the website.
• Send a POST request to the "/execute" endpoint with the input text as JSON data.
• Update the callback function to display the summarized sentence on the website.

Sweep: Make a python app that can easily summarize Arabic text, by extracting the key information from lengthy Arabic texts. The app uses advanced natural language processing techniques to analyze the text and generate concise summaries. It can be used for various purposes, such as research, content creation, or studying. The user-friendly interface makes it easy to input the Arabic text and quickly obtain a summary.

The Arabic-Summarizer python app allows users to easily summarize Arabic text. It is a helpful tool for those who need to extract key information from lengthy Arabic texts. The app uses advanced natural language processing techniques to analyze the text and generate concise summaries. It can be used for various purposes, such as research, content creation, or studying. The user-friendly interface makes it easy to input the Arabic text and quickly obtain a summary. Whether you're a student, researcher, or content creator, this app can save you time and effort by providing accurate and efficient summaries of Arabic texts.

Sweep: Fix the output

When clicking on the button "Summarize", it displays nothing
please review all files and review actions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.