Skip to content

benjaminjacobberg/synopsis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

This provides an easy REST API for text summarization.

Prerequisites

Ensure you have Rust and Cargo installed. If not, follow the instructions here.

Setting Up

  1. Clone this repository:

    git clone https://github.com/benjaminjacobberg/synopsis/
  2. Navigate to the project directory:

    cd synopis/synopsis-service
  3. Run:

    cargo run

The API server will start at http://localhost:8080.

Usage

To summarize a piece of text, send a POST request to the /api/summarize endpoint with your text in the request body. Here's a sample curl command:

curl --request POST \
  --url http://localhost:8080/api/summarize \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"text": "Your lengthy text here...", "range": {"min": 50, "max": 100}}'

Dependencies

TODO

  • Create a UI

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published