Update app.py ZeroGPU and VLM
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def process_kitchen_operations(input_image, budget, days):
|
|
| 97 |
return df_rows, blueprint_md
|
| 98 |
|
| 99 |
# =====================================================================
|
| 100 |
-
# 🎨 GRADIO INTERFACE DESIGN
|
| 101 |
# =====================================================================
|
| 102 |
with gr.Blocks() as demo:
|
| 103 |
gr.Markdown("# 🛰️ Parallel Plate: Kitchen Operations & Visual Logistics Engine")
|
|
@@ -107,11 +107,14 @@ with gr.Blocks() as demo:
|
|
| 107 |
with gr.Column(scale=1):
|
| 108 |
gr.Markdown("### 📸 1. Physical Edge Ingestion")
|
| 109 |
image_input = gr.Image(label="Upload Fridge Optical Survey Scan", type="pil")
|
| 110 |
-
|
|
|
|
| 111 |
budget_slider = gr.Slider(minimum=5, maximum=100, value=25, step=5, label="Runway Budget ($ USD)")
|
| 112 |
days_slider = gr.Slider(minimum=1, maximum=7, value=3, step=1, label="Target Horizon (Days)")
|
| 113 |
-
|
| 114 |
-
|
|
|
|
|
|
|
| 115 |
gr.Markdown("### 📊 2. Active Refrigerator Digital Twin")
|
| 116 |
inventory_df = gr.Dataframe(
|
| 117 |
headers=["Ingredient Asset", "Current Volume / Qty", "Telemetry Status", "Book Value (Est)"],
|
|
@@ -122,7 +125,8 @@ with gr.Blocks() as demo:
|
|
| 122 |
column_widths=["30%", "25%", "25%", "20%"],
|
| 123 |
value=load_persisted_state()
|
| 124 |
)
|
| 125 |
-
|
|
|
|
| 126 |
output_text = gr.Markdown("*Awaiting asset telemetry mapping to generate optimal cooking execution paths...*")
|
| 127 |
|
| 128 |
scan_btn.click(
|
|
|
|
| 97 |
return df_rows, blueprint_md
|
| 98 |
|
| 99 |
# =====================================================================
|
| 100 |
+
# 🎨 GRADIO INTERFACE DESIGN (Indentation Corrected)
|
| 101 |
# =====================================================================
|
| 102 |
with gr.Blocks() as demo:
|
| 103 |
gr.Markdown("# 🛰️ Parallel Plate: Kitchen Operations & Visual Logistics Engine")
|
|
|
|
| 107 |
with gr.Column(scale=1):
|
| 108 |
gr.Markdown("### 📸 1. Physical Edge Ingestion")
|
| 109 |
image_input = gr.Image(label="Upload Fridge Optical Survey Scan", type="pil")
|
| 110 |
+
|
| 111 |
+
with gr.Row():
|
| 112 |
budget_slider = gr.Slider(minimum=5, maximum=100, value=25, step=5, label="Runway Budget ($ USD)")
|
| 113 |
days_slider = gr.Slider(minimum=1, maximum=7, value=3, step=1, label="Target Horizon (Days)")
|
| 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)"],
|
|
|
|
| 125 |
column_widths=["30%", "25%", "25%", "20%"],
|
| 126 |
value=load_persisted_state()
|
| 127 |
)
|
| 128 |
+
|
| 129 |
+
gr.Markdown("### 🔀 3. Resource Routing & Recipe Output")
|
| 130 |
output_text = gr.Markdown("*Awaiting asset telemetry mapping to generate optimal cooking execution paths...*")
|
| 131 |
|
| 132 |
scan_btn.click(
|