mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fix
This commit is contained in:
parent
6f0801ed27
commit
8877f4c156
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ async def gemini_chatbot(_, ctx: Message, strings):
|
|||
if not response.json().get("candidates"):
|
||||
await ctx.reply_msg("⚠️ Sorry, the prompt you sent maybe contains a forbidden word that is not permitted by AI.")
|
||||
else:
|
||||
await ctx.reply_msg(html.escape(f'{response.json()["candidates"][0]["content"]["parts"][0]["text"]}\n\n<b>Powered by:</b> <code>Gemini Flash 1.5</code>'))
|
||||
await ctx.reply_msg(html.escape(response.json()["candidates"][0]["content"]["parts"][0]["text"])+'\n<b>Powered by:</b> <code>Gemini Flash 1.5</code>')
|
||||
await msg.delete()
|
||||
except Exception as e:
|
||||
await ctx.reply_msg(str(e))
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ async def removebg(_, ctx: Client):
|
|||
return await ctx.reply_msg("Only support photo for remove background.")
|
||||
prg = await ctx.reply("Processing...")
|
||||
source = await ctx.reply_to_message.download()
|
||||
await gen_trans_image(ctx.reply_to_message, f"transp_bckgrnd-{ctx.from_user.id}.png")
|
||||
await gen_trans_image(source, f"transp_bckgrnd-{ctx.from_user.id}.png")
|
||||
await ctx.reply_photo(f"transp_bckgrnd-{ctx.from_user.id}.png")
|
||||
await prg.delete_msg()
|
||||
os.remove(source)
|
||||
|
|
|
|||
Loading…
Reference in a new issue