@@ -130,14 +130,14 @@ def post_message_on_slack(message: str):
130
130
131
131
132
132
@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" ):
134
134
message = get_github_latest_release (owner = owner , repo = repo )
135
135
message = chatgpt_job (message = message )
136
136
post_message_on_slack (message = message )
137
137
138
138
139
139
if __name__ == "__main__" :
140
- wf ()
140
+ slack_wf ()
141
141
142
142
143
143
# %% [markdown]
@@ -183,7 +183,7 @@ def get_latest_video_transcript_chunks(channel_url: str) -> List[str]:
183
183
184
184
185
185
@workflow
186
- def wf (channel_url : str ):
186
+ def video_wf (channel_url : str ):
187
187
chunks = get_latest_video_transcript_chunks (channel_url = channel_url )
188
188
dynamic_subwf (channel_url = channel_url , chunks = chunks )
189
189
@@ -268,7 +268,7 @@ def dynamic_subwf(channel_url: str, chunks: List[str]):
268
268
269
269
270
270
if __name__ == "__main__" :
271
- wf (channel_url = "https://www.youtube.com/@flyteorg" )
271
+ video_wf (channel_url = "https://www.youtube.com/@flyteorg" )
272
272
273
273
# %% [markdown]
274
274
# ### Summarize the latest MLOps trend from Medium to Twitter
@@ -353,11 +353,11 @@ def tweet(text: str):
353
353
354
354
355
355
@workflow
356
- def wf (url : str = "https://medium.com/tag/flyte" ):
356
+ def tweet_wf (url : str = "https://medium.com/tag/flyte" ):
357
357
message = get_weekly_articles_title (url = url )
358
358
message = chatgpt_job (message = message )
359
359
tweet (text = message )
360
360
361
361
362
362
if __name__ == "__main__" :
363
- wf ()
363
+ tweet_wf ()
0 commit comments