-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Westphal
committed
Apr 24, 2024
1 parent
51cb925
commit f47ff29
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# coypu-KGQA | ||
Coypu KG Question Answering module for deployment. | ||
|
||
# Requirement | ||
|
||
- python >= 3.9 | ||
|
||
Use your favourite virtual environment management tool and | ||
|
||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
# Usage | ||
|
||
## Docker | ||
Alternatively, you can deploy via docker, which will be using port 12000. | ||
``` | ||
docker-compose up | ||
``` | ||
|
||
and query via post request, | ||
``` | ||
curl -i -H "Content-Type: application/json" -X POST -d '{"text": "What is the risk level of Germany?", "kb": "coypukg"}' http://127.0.0.1:12000 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters