Skip to content

Commit

Permalink
Sample App: Adding the knative function build for the sentiment analy…
Browse files Browse the repository at this point in the history
…sis service (#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
  • Loading branch information
Leo6Leo committed Apr 24, 2024
1 parent 7f0327a commit 87d2c89
Show file tree
Hide file tree
Showing 9 changed files with 494 additions and 0 deletions.
@@ -0,0 +1,5 @@

# Use the .funcignore file to exclude files which should not be
# tracked in the image build. To instruct the system not to track
# files in the image build, add the regex pattern or file information
# to this file.
@@ -0,0 +1,5 @@

# Functions use the .func directory for local runtime data which should
# generally not be tracked in source control. To instruct the system to track
# .func in source control, comment the following line (prefix it with '# ').
/.func
@@ -0,0 +1 @@
web: python -m parliament .

0 comments on commit 87d2c89

Please sign in to comment.