mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Update README.md
This commit is contained in:
parent
c118e691f8
commit
a96bf1de94
@ -7,7 +7,7 @@ Example:
|
||||
Run in the function:
|
||||
|
||||
```
|
||||
# curl -s --fail localhost:8080/system/functions -d \
|
||||
# curl -s http://localhost:8080/function/sentimentanalysis --data-binary \
|
||||
'{
|
||||
"service": "sentimentanalysis",
|
||||
"image": "functions/sentimentanalysis",
|
||||
@ -19,12 +19,12 @@ Run in the function:
|
||||
Now test the function:
|
||||
|
||||
```
|
||||
# curl localhost:8080/function/sentimentanalysis -d "Personally I like functions to do one thing and only one thing well, it makes them more readable."
|
||||
# curl http://localhost:8080/function/sentimentanalysis -d "Personally I like functions to do one thing and only one thing well, it makes them more readable."
|
||||
Polarity: 0.166666666667 Subjectivity: 0.6
|
||||
|
||||
# curl localhost:8080/function/sentimentanalysis -d "Functions are great and proven to be awesome"
|
||||
# curl http://localhost:8080/function/sentimentanalysis -d "Functions are great and proven to be awesome"
|
||||
Polarity: 0.9 Subjectivity: 0.875
|
||||
|
||||
# curl localhost:8080/function/sentimentanalysis -d "The hotel was clean, but the area was terrible"; echo
|
||||
# curl http://localhost:8080/function/sentimentanalysis -d "The hotel was clean, but the area was terrible"; echo
|
||||
Polarity: -0.316666666667 Subjectivity: 0.85
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user