Skip to content

Commit 40e6401

Browse files
committed
add gradio demos
1 parent f3b879f commit 40e6401

File tree

6 files changed

+501
-14
lines changed

6 files changed

+501
-14
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,18 @@ TMPDIR='/tmp' python gradio_demos/upn_demo.py
604604

605605

606606
## 4.2 Gradio Demo for ChatRex
607+
We also provide a gradio demo for ChatRex.
608+
```bash
609+
python gradio_demos/chatrex_demo.py
610+
# if there is permission error, please run the following command
611+
mkdir tmp
612+
TMPDIR='/tmp' python gradio_demos/upn_demo.py
613+
```
614+
615+
<div align=center>
616+
<img src="assets/chatrex_gradio.jpg" width=600 >
617+
</div>
618+
607619

608620

609621
# 5. LICENSE

assets/chatrex_gradio.jpg

490 KB
Loading

chatrex/tools/prompt_templates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
REGION_CAPTION_SINGLE_REGION_BREIFLY_STAGE2 = [
50-
"Can you provide me with a brief description of [OBJ]? Answer the question with brief description."
50+
"Can you provide me with a brief description of [OBJ]? Answer the question with brief description.",
5151
"Give a brief description of [OBJ].",
5252
"What brief description can you provide for [OBJ]?",
5353
"Provide a brief description for [OBJ].",
@@ -125,7 +125,7 @@
125125
]
126126

127127
BREIF_CAPTION_WITH_GROUDING_STAGE2 = [
128-
"Please breifly describe this image in one sentence and detect all the mentioned objects. Answer the question with grounded answer."
128+
"Please breifly describe this image in one sentence and detect all the mentioned objects. Answer the question with grounded answer.",
129129
"Please briefly describe this image and detect all the mentioned objects. Answer with grounded object indexes.",
130130
"Breifly describe this image with grounded answer",
131131
"Provide a brief description of this image and detect the objects mentioned in the description.",

0 commit comments

Comments
 (0)