Skip to content

RaphielHS/AutoSuggestServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoSuggestServer

Installation

    pip install -r requirements.txt

Usage

    python server.py

API

/suggest

Request

curl -X POST -H "Content-Type: application/json" -d '{"query":"hello"}' http://localhost:5000/suggest

Response

    {
        "suggestions": [
            "hello",
            "hello world",
            "hello world 2",
            "hello world 3",
            "hello world 4",
            "hello world 5",
            "hello world 6",
            "hello world 7",
            "hello world 8",
            "hello world 9"
        ]
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages