From e44001f8ec2b6f230f458e2579b5cb0854726043 Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 20 Jan 2023 14:38:01 +0100 Subject: [PATCH] replaced https with http --- code/imagesGeneration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/imagesGeneration.py b/code/imagesGeneration.py index 3dbd586..e8be0b9 100644 --- a/code/imagesGeneration.py +++ b/code/imagesGeneration.py @@ -4,7 +4,7 @@ import openai async def generate(prompt, path, mode, openai_key): #r = requests.get(f"http://localhost:8000/generate_image?prompt={prompt}&path={path}") if mode == "sd": - r = requests.get(f"https://localhost:8000/generate_image?prompt={prompt}&path={path}") + r = requests.get(f"http://localhost:8000/generate_image?prompt={prompt}&path={path}") return "image generated" if mode == "dalle": openai.api_key = openai_key