AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Make sdwebui tests pass (when SD is running) (#3721)
Cenny2f7beebc6106
diff --git a/tests/test_image_gen.py b/tests/test_image_gen.pyindex 546cc758d7..b4eb99e076 100644--- a/tests/test_image_gen.py+++ b/tests/test_image_gen.py@@ -48,18 +48,18 @@ def test_huggingface(config, workspace, image_size, image_model):)[email protected](reason="SD WebUI call does not work.")[email protected](reason="External SD WebUI may not be available.")def test_sd_webui(config, workspace, image_size):"""Test SD WebUI image generation."""generate_and_validate(config,workspace,- image_provider="sd_webui",+ image_provider="sdwebui",image_size=image_size,)[email protected](reason="SD WebUI call does not work.")[email protected](reason="External SD WebUI may not be available.")def test_sd_webui_negative_prompt(config, workspace, image_size):gen_image = functools.partial(generate_image_with_sd_webui,@@ -83,7 +83,7 @@ def test_sd_webui_negative_prompt(config, workspace, image_size):def lst(txt):"""Extract the file path from the output of `generate_image()`"""- return Path(txt.split(":")[1].strip())+ return Path(txt.split(":", maxsplit=1)[1].strip())def generate_and_validate(