some new things

This commit is contained in:
Paillat
2023-01-12 21:44:14 +01:00
parent 23fc5d7c88
commit e9efe53e48
3 changed files with 35 additions and 13 deletions

7
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())