Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
fix: move to new definition
Browse files Browse the repository at this point in the history
  • Loading branch information
1hachem committed Mar 9, 2024
1 parent 0d199ad commit 0c8e25c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from pydantic import Field

from hyko_sdk.definitions import SDKFunction
from hyko_sdk.definitions import ToolkitFunction
from hyko_sdk.models import CoreModel

func = SDKFunction(
description="Scrape HTML content from URLs and convert it to plain text"
func = ToolkitFunction(
name="beautifulsoup_transformer",
task="web_scraping",
description="Scrape HTML content from URLs and convert it to plain text",
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from pydantic import Field

from hyko_sdk.definitions import SDKFunction
from hyko_sdk.definitions import ToolkitFunction
from hyko_sdk.models import CoreModel

func = SDKFunction(
description="Scrape HTML content from URLs and convert it to plain text"
func = ToolkitFunction(
name="html2text_transformer",
task="web_scraping",
description="Scrape HTML content from URLs and convert it to plain text",
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pydantic import Field

from hyko_sdk.definitions import SDKFunction
from hyko_sdk.definitions import ToolkitFunction
from hyko_sdk.models import CoreModel


Expand All @@ -12,7 +12,11 @@ class SupportedLanguages(str, Enum):
french = "fr"


func = SDKFunction(description="Transcript extraction from youtube video.")
func = ToolkitFunction(
name="youtube_transcript",
task="web_scraping",
description="Transcript extraction from youtube video.",
)


@func.set_input
Expand Down

0 comments on commit 0c8e25c

Please sign in to comment.