randydev commited on
Commit
2cc4097
1 Parent(s): 48b0201

Update akn/Akeno/fluxai.py

Browse files
Files changed (1) hide show
  1. 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
- api = api.AkenoPlus(...)
40
- response = await api.paal_text_to_image(prompt=prompt)
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):