Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import tempfile
|
|
6 |
import os
|
7 |
|
8 |
def visualize_texture(section):
|
9 |
-
mesh = trimesh.load('
|
10 |
im = Image.open('rust_steel.png').convert('RGB')
|
11 |
|
12 |
# Calculate bounds
|
@@ -48,7 +48,7 @@ def visualize_texture(section):
|
|
48 |
|
49 |
with gr.Blocks() as app:
|
50 |
gr.Markdown("### 3D Model Texture Application")
|
51 |
-
original_model = gr.Model3D('
|
52 |
modified_model = gr.Model3D(label="Textured Model")
|
53 |
|
54 |
section_dropdown = gr.Dropdown(choices=['upper', 'lower', 'middle', 'top', 'right'], label="Select Section")
|
|
|
6 |
import os
|
7 |
|
8 |
def visualize_texture(section):
|
9 |
+
mesh = trimesh.load('train.glb', force='mesh')
|
10 |
im = Image.open('rust_steel.png').convert('RGB')
|
11 |
|
12 |
# Calculate bounds
|
|
|
48 |
|
49 |
with gr.Blocks() as app:
|
50 |
gr.Markdown("### 3D Model Texture Application")
|
51 |
+
original_model = gr.Model3D('train.glb', label="Original Model")
|
52 |
modified_model = gr.Model3D(label="Textured Model")
|
53 |
|
54 |
section_dropdown = gr.Dropdown(choices=['upper', 'lower', 'middle', 'top', 'right'], label="Select Section")
|