Overview

In the following article, I introduced a recommendation app for Japan’s Curriculum Guidelines (Gakushu Shido Yoryo) codes.

This time, I introduce how to use the above recommendation app via Gradio’s API.

Usage

Install the library.

pipinstallgradio_client

For example, let’s use the following data.

TextSchool Type
Investigate the mechanisms of air guns, water guns, bottle rockets, etc., and notice that as air is compressed and its volume decreases, the repulsive force increases, but water cannot be compressed.Elementary School

Since the JSON data is stored in the second element of the result array, it is retrieved with result[1].

fcrjrlesoistcaomeueopnnlxui_gtttr_dr=snaa=="eatdOmaiCcfeollS==_iit"ceeu/rlnndpeittyrse(.=eun"p[dltnr"itaec[ikdt1mai"]pmc"out]rr(,ta1C9l6i/ejnpt-cos調")",

As a result, the following JSON data is obtained.

[{{{{''''''''''''''''''''djjsjdjjsjdjjsjdjjsjcppcpcppcpcppcpcppcpt--o-t--o-t--o-t--o-eccrceccrceccrceccrcrooeorooeorooeorooeomss'smss'smss'smss'ss::::s::::s::::s:::::css:css:css:cssiou0eiou0eiou0eiou0edub.cdub.cdub.cdub.cerj2terj2terj2terj2tnse1inse3inse4inse5itec5otec6otec6otec5oiOt,niOt,niOt,niOt,nffATffATffATffATiSreiSreiSreiSreetexetexetexetexruatruatruatruat'd'''d'''d'''d'':y:::y:::y:::y::''''':''':''':''':''88882'2'2'2'6'6'6'6'0,0,0,0,22224'4'4'4'3,3,3,3,111111111120210000000000000000000000'''',,,,'},'},調'}',}]

Further Reading

More detailed usage can be found by clicking “Use via API” in the footer section.

It provides explanations about parameters and returned values.

Summary

I hope this serves as a useful reference.