Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Miko, Sung, GameInfoBot, YaeMiko, FilterBot, News etc..
LLM's
from lexica import Client, languageModels
def main(prompt: str) -> dict:
client = Client()
response = client.palm(prompt,languageModels.palm2)
return response
if __name__ == "__main__":
print(main("hello world"))
Upscale an image.
from lexica import Client
def main(image: bytes) -> bytes:
client = Client()
imageBytes = client.upscale(image)
with open('upscaled.png', 'wb') as f:
f.write(imageBytes)
if __name__ == "__main__":
image = open('examples/images/image.png', 'rb').read()
main(image)
Anti-NSFW
from lexica import Client
def main(image_url: str) -> dict:
client = Client()
response = client.AntiNsfw(image_url)
if response['content']['sfw'] == True:
return "This image is safe for work."
else:
return "This image is not safe for work."
if __name__ == "__main__":
print(main("https://graph.org/file/13e95c6cc932530823391.png"))
FAQs
The python package for api.qewertyy.dev
We found that lexica-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.