Skip to content

Commit

Permalink
Merge pull request #22 from SubstrateLabs/api-renames
Browse files Browse the repository at this point in the history
api renames
  • Loading branch information
0thernet authored Jun 13, 2024
2 parents 8b58513 + c16dcb7 commit 2aea60a
Show file tree
Hide file tree
Showing 10 changed files with 982 additions and 379 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ poetry.lock: pyproject.toml
ensure: poetry.lock
poetry install

sync: sync-version sync-codegen
sync: sync-version sync-codegen format

sync-version:
poetry run python scripts/sync_version.py
Expand Down
7 changes: 4 additions & 3 deletions examples/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
if api_key is None:
raise EnvironmentError("No SUBSTRATE_API_KEY set")

from substrate import Substrate, GenerateText, sb
from substrate import Substrate, GenerateText

substrate = Substrate(api_key=api_key, timeout=60 * 5)

story = GenerateText(prompt="tell me a story")
summary = GenerateText(prompt=sb.concat("Summarize this story: ", story.future.text))
# summary = GenerateText(prompt=sb.concat("Summarize this story: ", story.future.text))

response = substrate.run(story, summary)
# response = substrate.run(story, summary)
response = substrate.run(story)
print(response)

summary_out = response.get(summary)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "substrate"
version = "220240604.0.0"
version = "220240612.0.0"
description = "Substrate Python SDK"
readme = "README.md"
authors = [ "vprtwn <[email protected]>", "liamgriffiths <[email protected]>",]
Expand Down
2 changes: 1 addition & 1 deletion substrate/GEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20240604.20240611
20240612.20240613
22 changes: 9 additions & 13 deletions substrate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
"""
𐃏 Substrate Python SDK
20240604.20240611
20240612.20240613
"""

from .nodes import (
CLIP,
XTTSV2,
JinaV2,
FillMask,
EmbedText,
EmbedImage,
EraseImage,
Experimental,
FetchVectors,
Firellava13B,
GenerateJSON,
GenerateText,
InpaintImage,
UpscaleImage,
DeleteVectors,
GenerateImage,
Expand All @@ -24,25 +24,23 @@
MultiEmbedText,
MultiEmbedImage,
SegmentAnything,
TranscribeMedia,
ListVectorStores,
Llama3Instruct8B,
QueryVectorStore,
RemoveBackground,
TranscribeSpeech,
BatchGenerateJSON,
BatchGenerateText,
DeleteVectorStore,
Llama3Instruct70B,
Mistral7BInstruct,
MultiGenerateJSON,
MultiGenerateText,
MultiInpaintImage,
SegmentUnderPoint,
GenerateTextVision,
MultiGenerateImage,
GenerativeEditImage,
Mixtral8x7BInstruct,
FindOrCreateVectorStore,
MultiGenerativeEditImage,
StableDiffusionXLInpaint,
StableDiffusionXLLightning,
StableDiffusionXLControlNet,
Expand All @@ -65,24 +63,22 @@
"BatchGenerateJSON",
"GenerateJSON",
"MultiGenerateJSON",
"GenerateTextVision",
"Mistral7BInstruct",
"Mixtral8x7BInstruct",
"Llama3Instruct8B",
"Llama3Instruct70B",
"Firellava13B",
"GenerateImage",
"MultiGenerateImage",
"GenerativeEditImage",
"MultiGenerativeEditImage",
"InpaintImage",
"MultiInpaintImage",
"StableDiffusionXLLightning",
"StableDiffusionXLInpaint",
"StableDiffusionXLControlNet",
"TranscribeMedia",
"TranscribeSpeech",
"GenerateSpeech",
"XTTSV2",
"RemoveBackground",
"FillMask",
"EraseImage",
"UpscaleImage",
"SegmentUnderPoint",
"SegmentAnything",
Expand Down
2 changes: 1 addition & 1 deletion substrate/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "220240604.0.0"
__version__ = "220240612.0.0"
Loading

0 comments on commit 2aea60a

Please sign in to comment.