gummiboll / captionbot

Simple API wrapper for https://www.captionbot.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

captionbot

Captionbot is a simple API wrapper for https://www.captionbot.ai/

Installation

go get github.com/nhatbui/captionbot

Usage

package main

import (
	"fmt"
	"github.com/nhatbui/captionbot"
)

func main() {
	bot := captionbot.CaptionBot{}
	// DON'T FORGET TO INITIALIZE!!!
	bot.Initialize()

	imgURL := "http://www.nhatqbui.com/assets/me.jpg"

	fmt.Println(bot.URLCaption(imgURL))
}

Thanks

Thanks to @krikunts for their work on captionbot in Python that inspired this package.

About

Simple API wrapper for https://www.captionbot.ai/

License:MIT License


Languages

Language:Go 100.0%