Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample App: Adding the knative function build for the sentiment analysis service #5904

Merged
merged 16 commits into from
Apr 24, 2024

Conversation

Leo6Leo
Copy link
Member

@Leo6Leo Leo6Leo commented Mar 13, 2024

Fixes #5889

Proposed Changes

  • The code for the sentiment analysis service, which fits in knative function's python template

@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 13, 2024
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 13, 2024
Copy link

netlify bot commented Mar 13, 2024

Deploy Preview for knative ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 6917510
🔍 Latest deploy log https://app.netlify.com/sites/knative/deploys/66155159e720c60008c2f77e
😎 Deploy Preview https://deploy-preview-5904--knative.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Leo6Leo Leo6Leo changed the title Sample App: Adding the knative function build for the sentiment analysis service [WIP] Sample App: Adding the knative function build for the sentiment analysis service Mar 13, 2024
@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 13, 2024
@Leo6Leo Leo6Leo changed the title [WIP] Sample App: Adding the knative function build for the sentiment analysis service Sample App: Adding the knative function build for the sentiment analysis service Mar 14, 2024
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 14, 2024
@Leo6Leo
Copy link
Member Author

Leo6Leo commented Mar 15, 2024

/cc @Cali0707 @pierDipi

@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 19, 2024
@Leo6Leo
Copy link
Member Author

Leo6Leo commented Mar 20, 2024

/cc @lkingland @matejvasek

@nainaz
Copy link
Contributor

nainaz commented Mar 22, 2024 via email

@Leo6Leo Leo6Leo changed the title Sample App: Adding the knative function build for the sentiment analysis service [WIP]Sample App: Adding the knative function build for the sentiment analysis service Mar 28, 2024
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 28, 2024
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 4, 2024
@Leo6Leo Leo6Leo changed the title [WIP]Sample App: Adding the knative function build for the sentiment analysis service Sample App: Adding the knative function build for the sentiment analysis service Apr 4, 2024
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 4, 2024
@Leo6Leo
Copy link
Member Author

Leo6Leo commented Apr 4, 2024

knative/func#2241 has been resolved.

In order to make func invoke work correctly, readers need to install latest knative function when available. (release 1.14)

Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 24, 2024
Copy link

knative-prow bot commented Apr 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Leo6Leo, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot merged commit 87d2c89 into knative:main Apr 24, 2024
19 checks passed
prushh pushed a commit to prushh/docs that referenced this pull request Apr 30, 2024
…sis 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sample App: ML service - Sentiment Analysis
5 participants