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.
p i p i n s t a l l g r a d i o _ c l i e n t
For example, let’s use the following data.
Text School 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].
f c r j r l e s o i s t c a o m e u e o p n n l x u i _ g t t t r _ d r = s n a a = = " e a t d 空 O m a i C c 気 f e o l l 鉄 S = = _ i i 砲 t " c e e や u / r l n n 水 d p e i t t 鉄 y r s e ( . 砲 = e u n " p 、 [ d l t n r ペ " i t a e ッ 小 c [ i k d ト 学 t 1 m a i ボ 校 " ] p m c ト " o u t ル ] r r ( ロ , t a ケ 1 ッ C 9 ト l 6 な i / ど e j の n p し t - く c み o を s 調 " べ ) 、 空 気 は お し 縮 め ら れ 体 積 が 小 さ く な る に つ れ て 反 発 す る 力 が 大 き く な る が 、 水 は お し 縮 め ら れ な い こ と に 気 づ く 。 " ,
As a result, the following JSON data is obtained.
[ { { { { ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' d j j s j d j j s j d j j s j d j j s j c p p c p c p p c p c p p c p c p p c p t - - o - t - - o - t - - o - t - - o - e c c r c e c c r c e c c r c e c c r c r o o e o r o o e o r o o e o r o o e o m s s ' s m s s ' s m s s ' s m s s ' s s : : : : s : : : : s : : : : s : : : : : c s s : c s s : c s s : c s s i o u 0 e i o u 0 e i o u 0 e i o u 0 e d u b . c d u b . c d u b . c d u b . c e r j 2 t e r j 2 t e r j 2 t e r j 2 t n s e 1 i n s e 3 i n s e 4 i n s e 5 i t e c 5 o t e c 6 o t e c 6 o t e c 5 o i O t , n i O t , n i O t , n i O t , n f f A T f f A T f f A T f f A T i S r e i S r e i S r e i S r e e t e x e t e x e t e x e t e x r u a t r u a t r u a t r u a t ' d ' ' ' d ' ' ' d ' ' ' d ' ' : y : : : y : : : y : : : y : : ' ' ' ' ' : ' ' ' : ' ' ' : ' ' ' : ' ' 8 理 閉 8 理 閉 8 理 空 8 理 空 2 ' 科 じ 2 ' 科 じ 2 ' 科 気 2 ' 科 気 6 小 ' 込 6 小 ' 込 6 小 ' と 6 小 ' と 0 学 , め 0 学 , め 0 学 , 水 0 学 , 水 2 校 た 2 校 た 2 校 の 2 校 の 4 ' 空 4 ' 空 4 ' 性 4 ' 性 3 , 気 3 , 気 3 , 質 3 , 質 1 は 1 を 1 に 1 1 圧 1 圧 1 つ 1 空 1 《 1 《 2 い 0 気 2 お 1 お 0 て 0 と 0 》 0 》 0 追 0 水 0 し 0 す 0 究 0 の 0 縮 0 と 0 す 0 性 0 め 0 , 0 る 0 質 0 ら 0 体 0 中 0 に ' れ ' 積 ' で ' つ , る , は , , , い が 小 既 て , さ 習 , 水 く の 体 は な 内 積 圧 る 容 や 《 が や 圧 お , 生 《 》 圧 活 お し 《 経 》 縮 お 験 し め 》 を 返 ら し 基 す れ 返 に 力 な す , の い 力 空 変 こ は 気 化 と 大 と に 。 き 水 着 ' く の 目 } な 体 し , る 積 て こ や , と 圧 そ 。 《 れ ' お ら } 》 と , し 圧 返 《 す お 力 》 の す 変 力 化 と と を 圧 関 《 係 お 付 》 け す て 力 調 と べ の る 関 活 係 動 に を つ 通 い し て て , , 根 次 拠 の の 事 あ 項 る を 予 身 想 に や 付 仮 け 説 る を こ 発 と 想 が し で , き 表 る 現 よ す う る 指 こ 導 と す 。 る ' 。 } ' , } ]
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.