Spaces:
Running
on
Zero
Running
on
Zero
xiaoyuxi
commited on
Commit
·
2f28b42
1
Parent(s):
56adfdb
vggt_da
Browse files
app.py
CHANGED
|
@@ -563,10 +563,15 @@ def launch_viz(grid_size, vo_points, fps, original_image_state):
|
|
| 563 |
# Create iframe HTML to display the saved file
|
| 564 |
# Create iframe HTML
|
| 565 |
iframe_html = f"""
|
| 566 |
-
<div style='border: 3px solid #667eea; border-radius: 10px; overflow: hidden;
|
| 567 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 568 |
</div>
|
| 569 |
-
"""
|
|
|
|
| 570 |
print(f"💾 HTML saved to: {random_path}")
|
| 571 |
print(f"📊 HTML content preview: {viz_html[:200]}...")
|
| 572 |
|
|
@@ -795,6 +800,27 @@ with gr.Blocks(
|
|
| 795 |
padding: 20px;
|
| 796 |
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
| 797 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 798 |
/* 固定视频上传组件高度 */
|
| 799 |
.gr-video {
|
| 800 |
height: 300px !important;
|
|
@@ -1036,7 +1062,7 @@ with gr.Blocks(
|
|
| 1036 |
value="""
|
| 1037 |
<div style='border: 3px solid #667eea; border-radius: 10px; padding: 20px;
|
| 1038 |
background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
|
| 1039 |
-
text-align: center;
|
| 1040 |
flex-direction: column; justify-content: center; align-items: center;
|
| 1041 |
box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);'>
|
| 1042 |
<div style='font-size: 56px; margin-bottom: 25px;'>🌐</div>
|
|
|
|
| 563 |
# Create iframe HTML to display the saved file
|
| 564 |
# Create iframe HTML
|
| 565 |
iframe_html = f"""
|
| 566 |
+
<div style='border: 3px solid #667eea; border-radius: 10px; overflow: hidden;
|
| 567 |
+
box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3); height: 650px; width: 100%;'>
|
| 568 |
+
<iframe id="viz_iframe" src="/gradio_api/file={random_path}"
|
| 569 |
+
width="100%" height="650" frameborder="0"
|
| 570 |
+
style="border:none; display:block; width:100%; height:650px;">
|
| 571 |
+
</iframe>
|
| 572 |
</div>
|
| 573 |
+
"""
|
| 574 |
+
|
| 575 |
print(f"💾 HTML saved to: {random_path}")
|
| 576 |
print(f"📊 HTML content preview: {viz_html[:200]}...")
|
| 577 |
|
|
|
|
| 800 |
padding: 20px;
|
| 801 |
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
| 802 |
}
|
| 803 |
+
/* 固定3D可视化器尺寸 */
|
| 804 |
+
#viz_container {
|
| 805 |
+
height: 650px !important;
|
| 806 |
+
min-height: 650px !important;
|
| 807 |
+
max-height: 650px !important;
|
| 808 |
+
width: 100% !important;
|
| 809 |
+
}
|
| 810 |
+
#viz_container > div {
|
| 811 |
+
height: 650px !important;
|
| 812 |
+
min-height: 650px !important;
|
| 813 |
+
max-height: 650px !important;
|
| 814 |
+
width: 100% !important;
|
| 815 |
+
}
|
| 816 |
+
#viz_container iframe {
|
| 817 |
+
height: 650px !important;
|
| 818 |
+
min-height: 650px !important;
|
| 819 |
+
max-height: 650px !important;
|
| 820 |
+
width: 100% !important;
|
| 821 |
+
border: none !important;
|
| 822 |
+
display: block !important;
|
| 823 |
+
}
|
| 824 |
/* 固定视频上传组件高度 */
|
| 825 |
.gr-video {
|
| 826 |
height: 300px !important;
|
|
|
|
| 1062 |
value="""
|
| 1063 |
<div style='border: 3px solid #667eea; border-radius: 10px; padding: 20px;
|
| 1064 |
background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
|
| 1065 |
+
text-align: center; height: 650px; display: flex;
|
| 1066 |
flex-direction: column; justify-content: center; align-items: center;
|
| 1067 |
box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);'>
|
| 1068 |
<div style='font-size: 56px; margin-bottom: 25px;'>🌐</div>
|