-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
232 additions
and
2,864 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
from .settings import settings | ||
|
||
from .components import fn, image, speech, model, cast, extract, classify | ||
from .components.prompt.fn import prompt_fn | ||
from .apis.text import fn, cast, extract, classify, classifier, generate, model, Model | ||
from .apis.images import paint, image | ||
from .apis.audio import speak, speech | ||
|
||
|
||
try: | ||
from ._version import version as __version__ | ||
except ImportError: | ||
__version__ = "unknown" | ||
|
||
|
||
__all__ = [ | ||
"fn", | ||
"image", | ||
"model", | ||
# --- text --- | ||
"Model", | ||
"cast", | ||
"extract", | ||
"classify", | ||
"classifier", | ||
"extract", | ||
"fn", | ||
"generate", | ||
"model", | ||
# --- images --- | ||
"image", | ||
"paint", | ||
# --- audio --- | ||
"speak", | ||
"speech", | ||
"prompt_fn", | ||
"settings", | ||
] | ||
|
||
|
||
# compatibility with Marvin v1 | ||
from .components import fn as ai_fn, model as ai_model | ||
from .components.classifier import classifier as ai_classifier | ||
from marvin.apis._v1_compat import ai_fn, ai_model, ai_classifier |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import text, images, audio |
4 changes: 2 additions & 2 deletions
4
src/marvin/v2/ai/v1_compat.py → src/marvin/apis/_v1_compat.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import inspect | ||
|
||
IMAGE_PROMPT = inspect.cleandoc( | ||
""" | ||
{{ instructions }} | ||
Additional context: | ||
{{ context }} | ||
""" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.