-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from pokedim13/dev
Dev
- Loading branch information
Showing
23 changed files
with
666 additions
and
1,104 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,11 @@ | ||
from wombo import AsyncDream, Dream | ||
import asyncio | ||
|
||
async def main(): | ||
dream = AsyncDream() | ||
print(await dream.generate("anime waifu")) | ||
|
||
|
||
dream = Dream() | ||
print(dream.generate("anime waifu")) | ||
asyncio.run(main()) |
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,13 @@ | ||
from wombo import AsyncDream, models | ||
|
||
import pytest | ||
|
||
dream = AsyncDream() | ||
|
||
@pytest.mark.asyncio | ||
async def test_generate(): | ||
assert isinstance(await dream.generate("anime waifu"), models.TaskModel) | ||
|
||
@pytest.mark.asyncio | ||
async def test_styles(): | ||
assert isinstance(await dream.style._get_styles(), models.StyleModel) |
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,9 @@ | ||
from wombo import Dream, models | ||
|
||
dream = Dream() | ||
|
||
def test_generate(): | ||
assert isinstance(dream.generate("anime waifu"), models.TaskModel) | ||
|
||
def test_styles(): | ||
assert isinstance(dream.style._get_styles(), models.StyleModel) |
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,4 +1,4 @@ | ||
from wombo import models | ||
from wombo.api import AsyncDream, Dream | ||
from wombo.base_models import Style | ||
|
||
__all__ = ["AsyncDream", "Dream", "Style"] | ||
__all__ = ["models", "AsyncDream", "Dream"] |
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,4 +1,4 @@ | ||
from .async_dream import AsyncDream | ||
from .dream import Dream | ||
from wombo.api.async_dream import AsyncDream | ||
from wombo.api.dream import Dream | ||
|
||
__all__ = ["Dream", "AsyncDream"] | ||
__all__ = ["AsyncDream", "Dream"] |
Oops, something went wrong.