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 86d0a19 commit c10f48f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from pydantic import Field

from hyko_sdk.function import SDKFunction
from hyko_sdk.definitions import ToolkitModel
from hyko_sdk.io import Audio
from hyko_sdk.metadata import CoreModel

func = SDKFunction(
func = ToolkitModel(
name="automatic_speech_recognition",
task="audio",
description="HuggingFace automatic speech recognition",
)

Expand Down
8 changes: 5 additions & 3 deletions hyko_toolkit/models/audio/text_to_speech/metadata.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from pydantic import Field

from hyko_sdk.function import SDKFunction
from hyko_sdk.definitions import ToolkitModel
from hyko_sdk.io import Audio
from hyko_sdk.metadata import CoreModel

func = SDKFunction(
description="HuggingFace text to speech, run on cude may cause issues on cpu",
func = ToolkitModel(
name="text_to_speech",
task="audio",
description="HuggingFace text to speech, run on cuda may cause issues on cpu",
)


Expand Down

0 comments on commit c10f48f

Please sign in to comment.