You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add image size reduction functionality for beemoji generation. Update prompts for clarity and enhance error logging for server issues. Modify emoji name generation logic and improve user feedback in the response message.
"""Generate a creative name for the beemoji using text.pollinations.ai"""
343
357
try:
344
358
# Create a prompt for generating a creative emoji name
345
-
prompt=f"Create a single creative emoji name (maximum 32 characters, no spaces, use underscores) that combines {emoji1_name} and {emoji2_name}. Only return the name, nothing else."
359
+
prompt=f"Create a single creative emoji name (maximum 32 characters, no spaces, use underscores) that combines {emoji1_name} and {emoji2_name}. Only return the name, nothing else. It can be a single word, and it should not be too long."
346
360
347
361
# URL encode the prompt
348
362
encoded_prompt=quote(prompt, safe="")
@@ -396,7 +410,7 @@ async def generate_beemoji(
396
410
"""Generate a remixed emoji using the gptimage model"""
397
411
398
412
# Create a prompt for mixing the two emojis
399
-
prompt=f"Create a small cute remix combining elements of {emoji1_name} and {emoji2_name} emojis, 80x80 pixels, clean simple style, keep the background completely transparent. dont add fake transparent background"
413
+
prompt=f"Create a small remix combining elements of {emoji1_name} and {emoji2_name} emojis, 80x80 pixels, try to preserve the styles of the original emojis by making a blend of the two."
400
414
401
415
# Use the first emoji as the base image and the second as reference in the prompt
0 commit comments