fix(userbot): add missing safone.py imports, apply ruff --unsafe-fixes
- Add missing aiohttp, PIL, BytesIO imports to safone.py (F821 runtime bugs) - Apply ruff --unsafe-fixes (27 fixes): ternary operators, .get() patterns, contextlib.suppress, enumerate(), collapsible if/else, remove .keys()
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ async def cdxl(c: Client, message: Message):
|
||||
await message.edit_text(f'<b>Usage: </b><code>{prefix}vdxl [prompt/reply to prompt]</code>')
|
||||
return
|
||||
|
||||
inference_params = dict(width=1024, height=1024, steps=50, cfg_scale=9.0)
|
||||
inference_params = {'width': 1024, 'height': 1024, 'steps': 50, 'cfg_scale': 9.0}
|
||||
|
||||
model_prediction = Model(
|
||||
'https://clarifai.com/stability-ai/stable-diffusion-2/models/stable-diffusion-xl'
|
||||
|
||||
Reference in New Issue
Block a user