Skip to main content

The python package for api.qewertyy.dev

Project description

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, 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.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"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lexica-api-1.5.8.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file lexica-api-1.5.8.tar.gz.

File metadata

  • Download URL: lexica-api-1.5.8.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for lexica-api-1.5.8.tar.gz
Algorithm Hash digest
SHA256 2ced54c979af4f01efc9810f3931c1d476b71a639b52fa743ab8808aa618806b
MD5 6100e0b83554f8e93d502264e0b313f0
BLAKE2b-256 cdc4f3188b0c112b3d987f08886b7032a7a737882e44064ef38a92ff6caed99d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page