yejunliang23 commited on
Commit
bca73d7
·
unverified ·
1 Parent(s): 1e00c03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -11,6 +11,20 @@ from trimesh.exchange.gltf import export_glb
11
  import numpy as np
12
  import tempfile
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  # --------- Configuration & Model Loading ---------
15
  MODEL_DIR = "Qwen/Qwen2.5-VL-3B-Instruct"
16
  # Load processor, tokenizer, model for Qwen2.5-VL
 
11
  import numpy as np
12
  import tempfile
13
 
14
+
15
+ DESCRIPTION = '''
16
+ <div>
17
+ <h1 style="text-align: center;">LLaMA-Mesh</h1>
18
+ <div>
19
+ <a style="display:inline-block" href="https://research.nvidia.com/labs/toronto-ai/LLaMA-Mesh/"><img src='https://img.shields.io/badge/public_website-8A2BE2'></a>
20
+ <a style="display:inline-block; margin-left: .5em" href="https://github.com/nv-tlabs/LLaMA-Mesh"><img src='https://img.shields.io/github/stars/nv-tlabs/LLaMA-Mesh?style=social'/></a>
21
+ </div>
22
+ <p>LLaMA-Mesh: Unifying 3D Mesh Generation with Language Models.<a style="display:inline-block" href="https://research.nvidia.com/labs/toronto-ai/LLaMA-Mesh/">[Project Page]</a> <a style="display:inline-block" href="https://github.com/nv-tlabs/LLaMA-Mesh">[Code]</a></p>
23
+ <p> Notice: (1) This demo supports up to 4096 tokens due to computational limits, while our full model supports 8k tokens. This limitation may result in incomplete generated meshes. To experience the full 8k token context, please run our model locally.</p>
24
+ <p>(2) We only support generating a single mesh per dialog round. To generate another mesh, click the "clear" button and start a new dialog.</p>
25
+ <p>(3) If the LLM refuses to generate a 3D mesh, try adding more explicit instructions to the prompt, such as "create a 3D model of a table <strong>in OBJ format</strong>." A more effective approach is to request the mesh generation at the start of the dialog.</p>
26
+ </div>
27
+ '''
28
  # --------- Configuration & Model Loading ---------
29
  MODEL_DIR = "Qwen/Qwen2.5-VL-3B-Instruct"
30
  # Load processor, tokenizer, model for Qwen2.5-VL