Spaces:
Running
Running
Update fluxai.py
Browse files
fluxai.py
CHANGED
@@ -51,9 +51,6 @@ def deduct_tokens_gpt(user_id, amount):
|
|
51 |
|
52 |
@router.post("/akeno/fluxai", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
53 |
async def fluxai_image(payload: FluxAI):
|
54 |
-
if payload.user_id == 1191668125:
|
55 |
-
return SuccessResponse(status="False", randydev={"message": "Only Developer."})
|
56 |
-
|
57 |
if deduct_tokens_gpt(payload.user_id, amount=20):
|
58 |
try:
|
59 |
image_bytes = await schellwithflux(payload.args)
|
|
|
51 |
|
52 |
@router.post("/akeno/fluxai", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
53 |
async def fluxai_image(payload: FluxAI):
|
|
|
|
|
|
|
54 |
if deduct_tokens_gpt(payload.user_id, amount=20):
|
55 |
try:
|
56 |
image_bytes = await schellwithflux(payload.args)
|