Skip to content

This repository contains the source code for a Text Summarization Application that utilizes a Hugging Face model and Gradio web interface. Continuous integration is set to Hugging Face Spaces.

License

Notifications You must be signed in to change notification settings

henrii1/NLP_Text_summarization_huggingface

Repository files navigation

title emoji colorFrom colorTo sdk sdk_version app_file pinned license
Text Summarization
🔥
yellow
indigo
gradio
4.7.1
app.py
false
mit

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Text Summarization Application

Build Status License

This repository contains the source code for a Text Summarization Application that leverages a Hugging Face model and integrates with a Gradio web interface. Continuous integration is set up using Hugging Face Spaces. Additionally, it provides a command-line tool for text summarization and integrates with FastAPI through main.py.

Features

  • Hugging Face Model: Utilizes a pre-trained model from Hugging Face for text summarization.

  • Gradio Web Interface: Provides an interactive web interface powered by Gradio for easy input and output interaction.

  • Continuous Integration: Uses Hugging Face Spaces for continuous integration to ensure reliable and up-to-date deployments.

  • Command-Line Tool: Includes a command-line tool for convenient text summarization from the terminal.

  • FastAPI Integration: The main.py file integrates with FastAPI, allowing for RESTful API access to the summarization capabilities.

Getting Started

  1. Clone the Repository:

    git clone https://github.com/henrii1/NLP_Text_summarization_huggingface.git
    cd your-NLP_Text_smmarization_huggingface
  2. Install Dependencies, Lint, Format and Test:

    make all
  3. Run the Application:

    • For the Gradio web interface:
      python app.py
    • For the FastAPI integration:
      uvicorn main:app --reload
  4. Access the Application:

    • Gradio web interface: Open your browser and go to http://localhost:7860.
    • FastAPI: Explore the API at http://localhost:8000/docs (Swagger UI) or http://localhost:8000/redoc (ReDoc).

Command-Line Tool

To use the command-line tool for summarization, run:

python appCLI.py --text "Your input text goes here."

About

This repository contains the source code for a Text Summarization Application that utilizes a Hugging Face model and Gradio web interface. Continuous integration is set to Hugging Face Spaces.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published