mirror of
https://github.com/Paillat-dev/presentator.git
synced 2026-01-02 01:06:20 +00:00
replaced https with http
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user