-
Notifications
You must be signed in to change notification settings - Fork 110
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
1 parent
c71a713
commit f67b9a3
Showing
1 changed file
with
19 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,6 +1,24 @@ | ||
|
||
|
||
### Testing the model deployment : | ||
To run for testing just the Hugging Face deployment for grievence recognition, you can follow the following steps : | ||
|
||
- Git clone the repo | ||
- Go to current folder location i.e. ``` cd /src/text_classification/grievance_recognition/local ``` | ||
- Create docker image file and test the api: | ||
``` | ||
docker build -t testmodel . | ||
docker run -p 5000:5000 testmodel | ||
curl -X POST -H "Content-Type: application/json" -d '{"text": "Where is my money? "}' http://localhost:5000/ | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
Required curls request : | ||
|
||
curl -X POST http://localhost:8000/ -H 'Content-Type: application/json' -d '{ | ||
"source": "ନଡ଼ିଆ", | ||
"translation": "coconut" | ||
}' | ||
}' |