Spaces:
Running
on
T4
Running
on
T4
Upload gradio_app.py
Browse files- gradio_app.py +3 -3
gradio_app.py
CHANGED
@@ -139,7 +139,7 @@ def build_model_viewer_html(save_folder, height=660, width=790, textured=False):
|
|
139 |
|
140 |
iframe_tag = f'<iframe src="file={output_html_path}" height="{height}" width="100%" frameborder="0"></iframe>'
|
141 |
print(
|
142 |
-
f'Find html file {output_html_path}, {os.path.exists(output_html_path)}
|
143 |
|
144 |
return f"""
|
145 |
<div style='height: {height}; width: 100%;'>
|
@@ -148,9 +148,9 @@ def build_model_viewer_html(save_folder, height=660, width=790, textured=False):
|
|
148 |
"""
|
149 |
|
150 |
#if textured:
|
151 |
-
# mesh_file = os.path.join(save_folder,
|
152 |
#else:
|
153 |
-
# mesh_file = os.path.join(save_folder,
|
154 |
|
155 |
# Encode the GLB file as base64 to embed directly in the HTML
|
156 |
#with open(mesh_file, "rb") as f:
|
|
|
139 |
|
140 |
iframe_tag = f'<iframe src="file={output_html_path}" height="{height}" width="100%" frameborder="0"></iframe>'
|
141 |
print(
|
142 |
+
f'Find html file {output_html_path}, {os.path.exists(output_html_path)}')
|
143 |
|
144 |
return f"""
|
145 |
<div style='height: {height}; width: 100%;'>
|
|
|
148 |
"""
|
149 |
|
150 |
#if textured:
|
151 |
+
# mesh_file = os.path.join(save_folder, f'textured_mesh.glb')
|
152 |
#else:
|
153 |
+
# mesh_file = os.path.join(save_folder, f'white_mesh.glb')
|
154 |
|
155 |
# Encode the GLB file as base64 to embed directly in the HTML
|
156 |
#with open(mesh_file, "rb") as f:
|