Spaces:
Running
Running
Update akn/Akeno/fluxai.py
Browse files- akn/Akeno/fluxai.py +4 -3
akn/Akeno/fluxai.py
CHANGED
@@ -35,10 +35,11 @@ from config import *
|
|
35 |
from akn.utils.prefixprem import command
|
36 |
import akenoai as api
|
37 |
|
|
|
|
|
38 |
async def dalle_new(prompt):
|
39 |
-
|
40 |
-
|
41 |
-
data = await api.get_json(response=response)
|
42 |
return data.randydev.image_url
|
43 |
|
44 |
async def schellwithflux(args):
|
|
|
35 |
from akn.utils.prefixprem import command
|
36 |
import akenoai as api
|
37 |
|
38 |
+
dev = api.AkenoPlus(...)
|
39 |
+
|
40 |
async def dalle_new(prompt):
|
41 |
+
response = await dev.paal_text_to_image(prompt=prompt)
|
42 |
+
data = await dev.get_json(response=response)
|
|
|
43 |
return data.randydev.image_url
|
44 |
|
45 |
async def schellwithflux(args):
|