Spaces:
Running
on
Zero
Running
on
Zero
xiaoyuxi
commited on
Commit
·
b0fd8ec
1
Parent(s):
e5d8a8b
backend
Browse files
app.py
CHANGED
|
@@ -558,8 +558,12 @@ def launch_viz(grid_size, vo_points, fps, original_image_state):
|
|
| 558 |
f.write(viz_html)
|
| 559 |
|
| 560 |
# Create iframe HTML to display the saved file
|
| 561 |
-
|
| 562 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 563 |
print(f"💾 HTML saved to: {random_path}")
|
| 564 |
print(f"📊 HTML content preview: {viz_html[:200]}...")
|
| 565 |
|
|
|
|
| 558 |
f.write(viz_html)
|
| 559 |
|
| 560 |
# Create iframe HTML to display the saved file
|
| 561 |
+
# Create iframe HTML
|
| 562 |
+
iframe_html = f"""
|
| 563 |
+
<div style='border: 3px solid #667eea; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);'>
|
| 564 |
+
<iframe id="viz_iframe" src="/gradio_api/file={random_path}" width="100%" height="950px" style="border:none;"></iframe>
|
| 565 |
+
</div>
|
| 566 |
+
"""
|
| 567 |
print(f"💾 HTML saved to: {random_path}")
|
| 568 |
print(f"📊 HTML content preview: {viz_html[:200]}...")
|
| 569 |
|