Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from cloudevents.http import CloudEvent
from cloudevents.core.v1.event import CloudEvent
from profanity_check import predict

def new():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import json
import asyncio
import pytest
from cloudevents.http import CloudEvent
from cloudevents.core.v1.event import CloudEvent
from function import new


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from cloudevents.http import CloudEvent
from cloudevents.core.v1.event import CloudEvent
from textblob import TextBlob
import textblob

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import json
import asyncio
import pytest
from cloudevents.http import CloudEvent
from cloudevents.core.v1.event import CloudEvent
from function import new


Expand Down
2 changes: 1 addition & 1 deletion docs/blog/articles/ai_functions_llama_stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ See the entire code:
# Function
import logging
import os
from cloudevents.http import CloudEvent
from cloudevents.core.v1.event import CloudEvent
from llama_stack_client import LlamaStackClient

def new():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ You can replace the generated code with the sentiment analysis logic. You can us

```python
import logging
from cloudevents.http import CloudEvent
from cloudevents.core.v1.event import CloudEvent
from textblob import TextBlob

def new():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func create -l python bad-word-filter -t cloudevents

```python
import logging
from cloudevents.http import CloudEvent
from cloudevents.core.v1.event import CloudEvent
from profanity_check import predict

def new():
Expand Down