Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam-Rajeev authored Aug 8, 2023
1 parent c71a713 commit f67b9a3
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/data_generation/dictionary_aug/remote/README.md
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"
}'
}'

0 comments on commit f67b9a3

Please sign in to comment.