Spaces:
Sleeping
Sleeping
Nightwalkx commited on
Commit ·
6548bdd
1
Parent(s): f475cf3
revise description
Browse files- app.py +9 -3
- examples/indoor.jpg +0 -0
app.py
CHANGED
|
@@ -338,7 +338,7 @@ def http_bot(
|
|
| 338 |
|
| 339 |
title_markdown = """
|
| 340 |
# 🌋 LLaVA: Large Language and Vision Assistant
|
| 341 |
-
[[
|
| 342 |
|
| 343 |
ONLY WORKS WITH GPU!
|
| 344 |
|
|
@@ -366,6 +366,11 @@ learn_more_markdown = """
|
|
| 366 |
The service is a research preview intended for non-commercial use only, subject to the model [License](https://github.com/facebookresearch/llama/blob/main/MODEL_CARD.md) of LLaMA, [Terms of Use](https://openai.com/policies/terms-of-use) of the data generated by OpenAI, and [Privacy Practices](https://chrome.google.com/webstore/detail/sharegpt-share-your-chatg/daiacboceoaocpibfodeljbdfacokfjb) of ShareGPT. Please contact us if you find any potential violation.
|
| 367 |
"""
|
| 368 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 369 |
block_css = """
|
| 370 |
|
| 371 |
#buttons button {
|
|
@@ -414,8 +419,8 @@ def build_demo(embed_mode):
|
|
| 414 |
"What is unusual about this image?",
|
| 415 |
],
|
| 416 |
[
|
| 417 |
-
f"{cur_dir}/examples/
|
| 418 |
-
"
|
| 419 |
],
|
| 420 |
],
|
| 421 |
inputs=[imagebox, textbox],
|
|
@@ -469,6 +474,7 @@ def build_demo(embed_mode):
|
|
| 469 |
if not embed_mode:
|
| 470 |
gr.Markdown(tos_markdown)
|
| 471 |
gr.Markdown(learn_more_markdown)
|
|
|
|
| 472 |
url_params = gr.JSON(visible=False)
|
| 473 |
|
| 474 |
# Register listeners
|
|
|
|
| 338 |
|
| 339 |
title_markdown = """
|
| 340 |
# 🌋 LLaVA: Large Language and Vision Assistant
|
| 341 |
+
[[Code]](https://github.com/xi-jiajun/Spatial-LLaVA) [[Model]](https://huggingface.co/rogerxi/Spatial-LLaVA-7B)
|
| 342 |
|
| 343 |
ONLY WORKS WITH GPU!
|
| 344 |
|
|
|
|
| 366 |
The service is a research preview intended for non-commercial use only, subject to the model [License](https://github.com/facebookresearch/llama/blob/main/MODEL_CARD.md) of LLaMA, [Terms of Use](https://openai.com/policies/terms-of-use) of the data generated by OpenAI, and [Privacy Practices](https://chrome.google.com/webstore/detail/sharegpt-share-your-chatg/daiacboceoaocpibfodeljbdfacokfjb) of ShareGPT. Please contact us if you find any potential violation.
|
| 367 |
"""
|
| 368 |
|
| 369 |
+
acknowledgement_markdown = """
|
| 370 |
+
### Acknowledgement
|
| 371 |
+
This demo is built on top of [badayvedat/LLaVA](https://huggingface.co/spaces/badayvedat/LLaVA), and we thank the authors for their great demo!
|
| 372 |
+
"""
|
| 373 |
+
|
| 374 |
block_css = """
|
| 375 |
|
| 376 |
#buttons button {
|
|
|
|
| 419 |
"What is unusual about this image?",
|
| 420 |
],
|
| 421 |
[
|
| 422 |
+
f"{cur_dir}/examples/indoor.jpg",
|
| 423 |
+
"Can you give me an estimation of the distance between the recessed lighting with the kitchenette and the black sofas in the center room?",
|
| 424 |
],
|
| 425 |
],
|
| 426 |
inputs=[imagebox, textbox],
|
|
|
|
| 474 |
if not embed_mode:
|
| 475 |
gr.Markdown(tos_markdown)
|
| 476 |
gr.Markdown(learn_more_markdown)
|
| 477 |
+
gr.Markdown(acknowledgement_markdown)
|
| 478 |
url_params = gr.JSON(visible=False)
|
| 479 |
|
| 480 |
# Register listeners
|
examples/indoor.jpg
ADDED
|