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