NicolasG2523 commited on
Commit
a4c5c1c
·
verified ·
1 Parent(s): 81296e5

Upload gradio_app.py

Browse files
Files changed (1) hide show
  1. 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)}, relative HTML path is /static/{rel_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, "textured_mesh.glb")
152
  #else:
153
- # mesh_file = os.path.join(save_folder, "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:
 
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: