replaced https with http

This commit is contained in:
Paillat
2023-01-20 14:38:01 +01:00
parent db4ddbbdf9
commit e44001f8ec

View File

@@ -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