captionbot

package module
v0.0.0-...-660bf45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 10 Imported by: 0

README

captionbot

A wrapper for CaptionBot written in Go.

Usage:

package main

import "github.com/dattish/captionbot"

func main() {
    //captions a local file
    captionbot.FileCaption("image.png")
    
    //captions an image from a url
    captionbot.URLCaption("https://example.com/image.png")
    
    //rate the caption
    captionbot.Rate(5)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileCaption

func FileCaption(filePath string) (string, error)

func Rate

func Rate(rating int) (string, error)

func URLCaption

func URLCaption(imageUrl string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL