A3RT It seems that you can classify text, automatically generate it, score images, interact with it, and so on.
The APIs that can be used now are as follows.
Library to use: pya3rt https://github.com/nocotan/pya3rt
$ pip install pya3rt
Text Suggest
# -*- coding: utf-8 -*-
import pya3rt
apikey = "{YOUR_API_KEY}"
client = pya3rt.TextSuggestClient(apikey)
print(client.text_suggest("Horse"))
print(client.text_suggest("Autumn", style=1))
print(client.text_suggest("func", style=2))
Text Classification
# -*- coding: utf-8 -*-
import pya3rt
apikey = "{YOUR_API_KEY}"
client = pya3rt.TextClassificationClient(apikey)
print(client.classify("We are involved in a wide range of activities from system planning to development and operation."))
Proofreading API
# -*- coding: utf-8 -*-
import pya3rt
apikey = "{YOUR_API_KEY}"
client = pya3rt.ProofreadingClient(apikey)
print(client.proofreading("We are involved in a wide range of activities from system planning to development and operation."))
print(client.proofreading("We are involved in a wide range of activities from system standards to development and operation."))
Image Influence API
# -*- coding: utf-8 -*-
import pya3rt
apikey = "{YOUR_API_KEY}"
client = pya3rt.ImageInfluenceClient(apikey)
print(client.get_upload_url())
print(client.meat_score("meat1.jpeg ", 1))
Talk API
# -*- coding: utf-8 -*-
import pya3rt
apikey = "{YOUR_API_KEY}"
client = pya3rt.TalkClient(apikey)
print(client.talk("Good morning"))
Recommended Posts