some things

This commit is contained in:
Paillat
2023-01-13 16:21:56 +01:00
parent a36e009935
commit bf8e1fe948
5 changed files with 102 additions and 8 deletions

7
code/imagesGeneration.py Normal file
View File

@@ -0,0 +1,7 @@
import requests
import os
async def generate(prompt,path):
r = requests.get(f"http://localhost:8000/generate_image?prompt={prompt}&path={path}")
return r.json()
#print the current working directory
print(os.getcwd())