Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lexica-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lexica-api

The python package for api.qewertyy.dev

  • 1.6.0
  • PyPI
  • Socket score

Maintainers
1

Here are some projects which utilizes the LexicaAPI.

AverageAI

  • Name: AverageAI
  • Description: Image Generations and LLMs.

AverageImages

  • Name: AverageImages
  • Description: Search Images on google and bing.

Upscale

  • Name: Upscale
  • Description: Upscale Images.

AverageNews

Social-DL

  • Name: Social-DL
  • Description: Download Videos/Images from social media.

TelegramBots

Miko, AntiNSFWBot, Sung, GameInfoBot, YaeMiko, FilterBot, News etc..

Usages

LLM's

from lexica import Client, languageModels

def main(prompt: str) -> dict:
    client = Client()
    response = client.palm(prompt,languageModels.gemini)
    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"))

Keywords

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc