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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This is pythone code for encoding for 1Shot puppy prompts
Just input query and execute
I hope it would be useful :D
if this bothers you, you can always delete!
import base64
def to_leetspeak(text):
mapping = str.maketrans({
'a': '4', 'A': '4',
'e': '3', 'E': '3',
'l': '1', 'L': '1',
'o': '0', 'O': '0',
't': '7', 'T': '7'
})
return text.translate(mapping)
def leet_to_base64(text):
leet_text = to_leetspeak(text)
encoded = base64.b64encode(leet_text.encode()).decode()
return encoded
input_text = input()
result = leet_to_base64(input_text)
print(result)
Beta Was this translation helpful? Give feedback.
All reactions