How to Add a New Component to Gradio

  • Add new class Textbo1 in compnents.py:
  • make the new copy name of Textbo1 of the directory named “Textbox”
$ cp -r 
github/my_/gradio/ui/packages/app/src/components/Textbox

github/my_/gradio/ui/packages/app/src/components/Textbo1
$ cp -r /mnt/docker/github/gradio/ui/packages/app/src/components/input/Textbox/mnt/docker/github/gradio/ui/packages/app/src/components/input/Textbo1
  • Edit following file __init__.py:
  • Edit directory.ts
  • Then compile it
$ ./scripts/build_frontend.sh

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul Xiong

Paul Xiong

Coding, implementing, optimizing ML annotation with self-supervised learning, TLDR: doctor’s labeling is the 1st priority for our Cervical AI project.