Skip to content

Commit e9f1f7c

Browse files
Leo6Leoprushh
authored andcommitted
Sample App: Adding the knative function build for the sentiment analysis service (knative#5904)
* Adding the knative function build for the sentiment analysis service * Update the sample code, so that the returned result is a cloudEvent * Update the sample code to give a specific event type to the response cloudEvent * Update the tutorial doc * Update the tutorial doc * Remove the docker registry info * Fix nit * Modify the return response type and how python function handle the incoming cloudEvent * Adding the explaination for serving * Unhide the alert box portion * Remove the intentional delay * Remove the duplicated line * Make the input as json instead of plaintext * Update the version of cloudEvent and update the deployment instruction * Update the tutorial to use the public URL instead of cluster-IP * Display the input text in the response
1 parent 5e763f0 commit e9f1f7c

File tree

9 files changed

+494
-0
lines changed

9 files changed

+494
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
# Use the .funcignore file to exclude files which should not be
3+
# tracked in the image build. To instruct the system not to track
4+
# files in the image build, add the regex pattern or file information
5+
# to this file.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
# Functions use the .func directory for local runtime data which should
3+
# generally not be tracked in source control. To instruct the system to track
4+
# .func in source control, comment the following line (prefix it with '# ').
5+
/.func
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: python -m parliament .

0 commit comments

Comments
 (0)