Update app.py to fix table column spacing
Browse files
app.py
CHANGED
|
@@ -114,13 +114,16 @@ with gr.Blocks() as demo:
|
|
| 114 |
|
| 115 |
scan_btn = gr.Button("🚀 Initialize Asset Optimization Scan", variant="primary")
|
| 116 |
|
|
|
|
| 117 |
with gr.Column(scale=1):
|
| 118 |
gr.Markdown("### 📊 2. Active Refrigerator Digital Twin")
|
| 119 |
inventory_df = gr.Dataframe(
|
| 120 |
headers=["Ingredient Asset", "Current Volume / Qty", "Telemetry Status", "Book Value (Est)"],
|
| 121 |
datatype=["str", "str", "str", "str"],
|
| 122 |
label="Live Operational Asset Manifest",
|
| 123 |
-
interactive=True
|
|
|
|
|
|
|
| 124 |
)
|
| 125 |
|
| 126 |
gr.Markdown("### 🔀 3. Resource Routing & Recipe Output")
|
|
|
|
| 114 |
|
| 115 |
scan_btn = gr.Button("🚀 Initialize Asset Optimization Scan", variant="primary")
|
| 116 |
|
| 117 |
+
# Right Operational Node: Real-time State Machine Telemetry
|
| 118 |
with gr.Column(scale=1):
|
| 119 |
gr.Markdown("### 📊 2. Active Refrigerator Digital Twin")
|
| 120 |
inventory_df = gr.Dataframe(
|
| 121 |
headers=["Ingredient Asset", "Current Volume / Qty", "Telemetry Status", "Book Value (Est)"],
|
| 122 |
datatype=["str", "str", "str", "str"],
|
| 123 |
label="Live Operational Asset Manifest",
|
| 124 |
+
interactive=True,
|
| 125 |
+
wrap=True, # Ensures text wraps cleanly inside rows instead of clipping
|
| 126 |
+
column_widths=["30%", "25%", "25%", "20%"] # Allocates perfect horizontal space per column
|
| 127 |
)
|
| 128 |
|
| 129 |
gr.Markdown("### 🔀 3. Resource Routing & Recipe Output")
|