Skip to content

Commit

Permalink
chore(actions): testing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dennyabrain committed Jul 7, 2022
1 parent dd3365a commit 6f8e362
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ogbv-ml-rest/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# OGBV ML REST Server

v:0.0.1

## Developing Locally

1. Clone the repository in your local machine and navigate to the 'FastAPI - OGBV' folder.
Expand All @@ -8,7 +10,9 @@
```
docker build -t ml .
```

3. After your docker is built, run it using the following command

```
docker run -p 8080:80 ml
```
Expand All @@ -18,7 +22,9 @@ docker run -p 8080:80 ml
```
curl -X POST http://localhost:8080/predict -H 'Content-Type: application/json' -d '{"text":"The food in this restaurant is disgusting"}'
```

Note that if you are on windows and are using PowerShell, you might need to run this command instead of the previous one for making POST requests:

```
Invoke-RestMethod -Method 'Post' -Uri http://localhost:8080/predict -Body (@{"text"="The food in this restaurant is disgusting"}|ConvertTo-Json) -ContentType "application/json"
```

0 comments on commit 6f8e362

Please sign in to comment.