Spaces:
Runtime error
Runtime error
Commit
·
4eb5beb
1
Parent(s):
8d8e128
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def add_text(state, text, image, image_process_mode, seg, seg_process_mode, dept
|
|
120 |
state.append_message(state.roles[0], text)
|
121 |
state.append_message(state.roles[1], None)
|
122 |
state.skip_next = False
|
123 |
-
return (state, state.to_gradio_chatbot(), "", None, None, None
|
124 |
|
125 |
|
126 |
def http_bot(state, model_selector, temperature, top_p, max_new_tokens, request: gr.Request):
|
@@ -197,7 +197,7 @@ title = "<h1 style='margin-bottom: -10px; text-align: center'>VCoder: Versatile
|
|
197 |
# style='
|
198 |
description = "<p style='font-size: 16px; margin: 5px; font-weight: w300; text-align: center'> <a href='https://praeclarumjj3.github.io/' style='text-decoration:none' target='_blank'>Jitesh Jain, </a> <a href='https://jwyang.github.io/' style='text-decoration:none' target='_blank'>Jianwei Yang, <a href='https://www.humphreyshi.com/home' style='text-decoration:none' target='_blank'>Humphrey Shi</a></p>" \
|
199 |
+ "<p style='font-size: 16px; margin: 5px; font-weight: w600; text-align: center'> <a href='https://praeclarumjj3.github.io/vcoder/' target='_blank'>Project Page</a> | <a href='https://praeclarumjj3.github.io/vcoder/' target='_blank'>Video</a> | <a href='https://arxiv.org/abs/2211.06220' target='_blank'>ArXiv Paper</a> | <a href='https://github.com/SHI-Labs/VCoder' target='_blank'>Github Repo</a></p>" \
|
200 |
-
+ "<p style='text-align: center; font-size: 16px; margin: 5px; font-weight: w300;'> [Note: You can obtain segmentation maps for your image using the <a href='https://huggingface.co/spaces/shi-labs/OneFormer' style='text-decoration:none' target='_blank'>OneFormer Demo</a> and the depth map from <a href='https://
|
201 |
|
202 |
tos_markdown = ("""
|
203 |
### Terms of use
|
|
|
120 |
state.append_message(state.roles[0], text)
|
121 |
state.append_message(state.roles[1], None)
|
122 |
state.skip_next = False
|
123 |
+
return (state, state.to_gradio_chatbot(), "", None, None, None) + (disable_btn,) * 5
|
124 |
|
125 |
|
126 |
def http_bot(state, model_selector, temperature, top_p, max_new_tokens, request: gr.Request):
|
|
|
197 |
# style='
|
198 |
description = "<p style='font-size: 16px; margin: 5px; font-weight: w300; text-align: center'> <a href='https://praeclarumjj3.github.io/' style='text-decoration:none' target='_blank'>Jitesh Jain, </a> <a href='https://jwyang.github.io/' style='text-decoration:none' target='_blank'>Jianwei Yang, <a href='https://www.humphreyshi.com/home' style='text-decoration:none' target='_blank'>Humphrey Shi</a></p>" \
|
199 |
+ "<p style='font-size: 16px; margin: 5px; font-weight: w600; text-align: center'> <a href='https://praeclarumjj3.github.io/vcoder/' target='_blank'>Project Page</a> | <a href='https://praeclarumjj3.github.io/vcoder/' target='_blank'>Video</a> | <a href='https://arxiv.org/abs/2211.06220' target='_blank'>ArXiv Paper</a> | <a href='https://github.com/SHI-Labs/VCoder' target='_blank'>Github Repo</a></p>" \
|
200 |
+
+ "<p style='text-align: center; font-size: 16px; margin: 5px; font-weight: w300;'> [Note: You can obtain segmentation maps for your image using the <a href='https://huggingface.co/spaces/shi-labs/OneFormer' style='text-decoration:none' target='_blank'>OneFormer Demo</a> and the depth map from <a href='https://github.com/facebookresearch/dinov2/blob/main/notebooks/depth_estimation.ipynb' style='text-decoration:none' target='_blank'>DINOv2</a>. Please click on Regenerate button if you are unsatisfied with the generated response. You may find screenshots of our demo trials <a href='https://github.com/SHI-Labs/VCoder/blob/main/images/' style='text-decoration:none' target='_blank'>here</a>.]</p>"
|
201 |
|
202 |
tos_markdown = ("""
|
203 |
### Terms of use
|