This is the advanced gradio used in our paper, GPT4RoI: Instruction Tuning Large Language Model on Region-of-Interest. This is an extension to official gradio, which supports drawing boxes on top of an image. This feature is requested in https://github.com/gradio-app/gradio/issues/2316.

See mini-demo:
python app_box.py
We install it on Ubuntu with:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc # or ~/.zshrc based on which one you use
nvm install v18.16.0
curl -fsSL https://get.pnpm.io/install.sh | sh -
source ~/.bashrc # or ~/.zshrc based on which one you use
pnpm --version # check if success
git clone https://github.com/ShoufaChen/gradio-dev.git
cd gradio-dev
bash scripts/build_frontend.sh
pip install -e .
# Add following in `~/.npmrc` file
@OWNER:registry=https://packagecloud.io/github/git-lfs/npm/
Our implementation is mainly inspired by https://github.com/gradio-app/gradio/pull/3220, with several modifications for latest gradio. Greate thanks to CtrlAltDeplete.
(top 30 of 158)
Python
69.4%
Svelte
13.1%
TypeScript
12.0%
HTML
3.7%
CSS
1.0%
This is the advanced gradio used in our paper, GPT4RoI: Instruction Tuning Large Language Model on Region-of-Interest. This is an extension to official gradio, which supports drawing boxes on top of an image. This feature is requested in https://github.com/gradio-app/gradio/issues/2316.

See mini-demo:
python app_box.py
We install it on Ubuntu with:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc # or ~/.zshrc based on which one you use
nvm install v18.16.0
curl -fsSL https://get.pnpm.io/install.sh | sh -
source ~/.bashrc # or ~/.zshrc based on which one you use
pnpm --version # check if success
git clone https://github.com/ShoufaChen/gradio-dev.git
cd gradio-dev
bash scripts/build_frontend.sh
pip install -e .
# Add following in `~/.npmrc` file
@OWNER:registry=https://packagecloud.io/github/git-lfs/npm/
Our implementation is mainly inspired by https://github.com/gradio-app/gradio/pull/3220, with several modifications for latest gradio. Greate thanks to CtrlAltDeplete.
(top 30 of 158)
Python
69.4%
Svelte
13.1%
TypeScript
12.0%
HTML
3.7%
CSS
1.0%