Skip to content

Commit d9fa22d

Browse files
committed
test
Signed-off-by: Kevin Su <[email protected]>
1 parent 28d4fa5 commit d9fa22d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/checks_new.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424
- name: "Provide the list"
2525
id: create-example-list
2626
run: |
27+
# TODO: Register and update the examples below. (onnx_plugin, feast_integration, etc)
2728
echo "PACKAGES=$(find examples -maxdepth 1 -type d -exec basename '{}' \; \
2829
| grep -v -e 'testing' -e 'examples' \
29-
| grep -v -e 'airflow_plugin' -e 'forecasting_sales' -e 'onnx_plugin' -e 'feast_integration' -e 'modin_plugin' -e 'sagemaker_inference_agent' -e 'kfpytorch_plugin' -e 'extending' \
30+
| grep -v -e 'airflow_plugin' -e 'forecasting_sales' -e 'onnx_plugin' -e 'feast_integration' -e 'modin_plugin' -e 'sagemaker_inference_agent' -e 'kfpytorch_plugin'' \
3031
| sort \
3132
| jq --raw-input . \
3233
| jq --slurp . \

examples/chatgpt_agent/chatgpt_agent/chatgpt_agent_example_usage.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ def post_message_on_slack(message: str):
130130

131131

132132
@workflow
133-
def wf(owner: str = "flyteorg", repo: str = "flyte", channel: str = "demo"):
133+
def slack_wf(owner: str = "flyteorg", repo: str = "flyte", channel: str = "demo"):
134134
message = get_github_latest_release(owner=owner, repo=repo)
135135
message = chatgpt_job(message=message)
136136
post_message_on_slack(message=message)
137137

138138

139139
if __name__ == "__main__":
140-
wf()
140+
slack_wf()
141141

142142

143143
# %% [markdown]
@@ -183,7 +183,7 @@ def get_latest_video_transcript_chunks(channel_url: str) -> List[str]:
183183

184184

185185
@workflow
186-
def wf(channel_url: str):
186+
def video_wf(channel_url: str):
187187
chunks = get_latest_video_transcript_chunks(channel_url=channel_url)
188188
dynamic_subwf(channel_url=channel_url, chunks=chunks)
189189

@@ -268,7 +268,7 @@ def dynamic_subwf(channel_url: str, chunks: List[str]):
268268

269269

270270
if __name__ == "__main__":
271-
wf(channel_url="https://www.youtube.com/@flyteorg")
271+
video_wf(channel_url="https://www.youtube.com/@flyteorg")
272272

273273
# %% [markdown]
274274
# ### Summarize the latest MLOps trend from Medium to Twitter
@@ -353,11 +353,11 @@ def tweet(text: str):
353353

354354

355355
@workflow
356-
def wf(url: str = "https://medium.com/tag/flyte"):
356+
def tweet_wf(url: str = "https://medium.com/tag/flyte"):
357357
message = get_weekly_articles_title(url=url)
358358
message = chatgpt_job(message=message)
359359
tweet(text=message)
360360

361361

362362
if __name__ == "__main__":
363-
wf()
363+
tweet_wf()

0 commit comments

Comments
 (0)