Skip to content

Commit

Permalink
renamed TextToImage
Browse files Browse the repository at this point in the history
  • Loading branch information
ovuruska committed Apr 26, 2024
1 parent a89cbad commit 9d81699
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deepinfra/models/base/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import BaseModel
from .image_generation import ImageGeneration
from .text_to_image import TextToImage
from .embeddings import Embeddings
from .automatic_speech_recognition import AutomaticSpeechRecognition
8 changes: 5 additions & 3 deletions deepinfra/models/base/automatic_speech_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
class AutomaticSpeechRecognition(BaseModel):

"""
Initializes the automatic speech recognition model.
@param endpoint: The endpoint of the model or the model name.
@param auth_token: The API key to authenticate the requests.
@docs Check the available models at https://deepinfra.com/models/automatic-speech-recognition
"""

def __init__(self, endpoint: str, auth_token: str = None):
"""
Initializes the automatic speech recognition model.
@param endpoint: The endpoint of the model or the model name.
@param auth_token: The API key to authenticate the requests.
"""
super().__init__(endpoint, auth_token)

def generate(self, body) -> AutomaticSpeechRecognitionResponse:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from deepinfra.models import BaseModel


class ImageGeneration(BaseModel):
class TextToImage(BaseModel):

"""
Initializes one of the DeepInfra image generation models.
@docs Check the available models at https://deepinfra.com/models/text-to-image
"""

def __init__(self, endpoint: str, auth_token: str):
Expand Down

0 comments on commit 9d81699

Please sign in to comment.