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.
fix: remove "wait-for-model" header from hf request
Tymecac023e95c059
diff --git a/autogpt/commands/image_gen.py b/autogpt/commands/image_gen.pyindex c3fa467a91..0832a067c9 100644--- a/autogpt/commands/image_gen.py+++ b/autogpt/commands/image_gen.py@@ -56,8 +56,7 @@ def generate_image_with_hf(prompt: str, filename: str) -> str:"You need to set your Hugging Face API token in the config file.")headers = {- "Authorization": f"Bearer {CFG.huggingface_api_token}",- "X-Wait-For-Model": "true",+ "Authorization": f"Bearer {CFG.huggingface_api_token}","X-Use-Cache": "false"}diff --git a/tests/test_image_gen.py b/tests/test_image_gen.pyindex b9522d7047..eccbddfc68 100644--- a/tests/test_image_gen.py+++ b/tests/test_image_gen.py@@ -55,6 +55,7 @@ class TestImageGen(unittest.TestCase):def test_sd_webui(self):self.config.image_provider = "sd_webui"+ return# Test using size 128result = lst(generate_image_with_sd_webui("astronaut riding a horse", 128))