Update app.py
Browse files
app.py
CHANGED
|
@@ -215,7 +215,7 @@ class SMPLPCAController:
|
|
| 215 |
|
| 216 |
# Create model-viewer HTML file
|
| 217 |
beta_str = ", ".join([f"{b:.3f}" for b in beta_vector[:3]])
|
| 218 |
-
title = f"SMPL Shape (β: {beta_str})"
|
| 219 |
html_content = self.create_model_viewer_html_base64(glb_path, title)
|
| 220 |
|
| 221 |
# Save HTML file for iframe serving
|
|
@@ -359,7 +359,7 @@ class SMPLPCAController:
|
|
| 359 |
return "Model not loaded."
|
| 360 |
|
| 361 |
info = f"""
|
| 362 |
-
**SMPL Model Information:**
|
| 363 |
- Number of shape components (β): {self.n_components}
|
| 364 |
- Total vertices: {len(self.T_mean) // 3}
|
| 365 |
- Total explained variance: {np.sum(self.pca_model.explained_variance_ratio_):.4f}
|
|
|
|
| 215 |
|
| 216 |
# Create model-viewer HTML file
|
| 217 |
beta_str = ", ".join([f"{b:.3f}" for b in beta_vector[:3]])
|
| 218 |
+
title = f"SMPL forearm Shape (β: {beta_str})"
|
| 219 |
html_content = self.create_model_viewer_html_base64(glb_path, title)
|
| 220 |
|
| 221 |
# Save HTML file for iframe serving
|
|
|
|
| 359 |
return "Model not loaded."
|
| 360 |
|
| 361 |
info = f"""
|
| 362 |
+
**SMPL Model forearm Information:**
|
| 363 |
- Number of shape components (β): {self.n_components}
|
| 364 |
- Total vertices: {len(self.T_mean) // 3}
|
| 365 |
- Total explained variance: {np.sum(self.pca_model.explained_variance_ratio_):.4f}
|