Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,10 @@ subprocess.run(
|
|
6 |
env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
7 |
shell=True,
|
8 |
)
|
|
|
|
|
|
|
|
|
9 |
import os
|
10 |
import torch
|
11 |
import trimesh
|
@@ -211,12 +215,12 @@ If you have any questions, feel free to open a discussion or contact us at <b>yi
|
|
211 |
"""
|
212 |
output_model_obj = gr.Model3D(
|
213 |
label="Generated Mesh (OBJ Format)",
|
214 |
-
|
215 |
clear_color=[1, 1, 1, 1],
|
216 |
)
|
217 |
preprocess_model_obj = gr.Model3D(
|
218 |
label="Processed Input Mesh (OBJ Format)",
|
219 |
-
|
220 |
clear_color=[1, 1, 1, 1],
|
221 |
)
|
222 |
input_image_render = gr.Image(
|
@@ -232,7 +236,7 @@ with (gr.Blocks() as demo):
|
|
232 |
with gr.Row():
|
233 |
input_3d = gr.Model3D(
|
234 |
label="Input Mesh",
|
235 |
-
|
236 |
clear_color=[1,1,1,1],
|
237 |
)
|
238 |
|
|
|
6 |
env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
7 |
shell=True,
|
8 |
)
|
9 |
+
subprocess.run(
|
10 |
+
"pip install gradio==4.40.0",
|
11 |
+
shell=True,
|
12 |
+
)
|
13 |
import os
|
14 |
import torch
|
15 |
import trimesh
|
|
|
215 |
"""
|
216 |
output_model_obj = gr.Model3D(
|
217 |
label="Generated Mesh (OBJ Format)",
|
218 |
+
display_mode="wireframe",
|
219 |
clear_color=[1, 1, 1, 1],
|
220 |
)
|
221 |
preprocess_model_obj = gr.Model3D(
|
222 |
label="Processed Input Mesh (OBJ Format)",
|
223 |
+
display_mode="wireframe",
|
224 |
clear_color=[1, 1, 1, 1],
|
225 |
)
|
226 |
input_image_render = gr.Image(
|
|
|
236 |
with gr.Row():
|
237 |
input_3d = gr.Model3D(
|
238 |
label="Input Mesh",
|
239 |
+
display_mode="wireframe",
|
240 |
clear_color=[1,1,1,1],
|
241 |
)
|
242 |
|