Update app.py
Browse files
app.py
CHANGED
|
@@ -89,8 +89,9 @@ def predict_eta(distance_meters, num_stops, hour, day_name, route_id):
|
|
| 89 |
|
| 90 |
# --- 3. Build the UI ---
|
| 91 |
with gr.Blocks() as demo:
|
| 92 |
-
gr.Markdown("# HK-TransitFlow-Net Demo
|
| 93 |
gr.Markdown("Live inference for **KMB & CTB** Bus ETA prediction.")
|
|
|
|
| 94 |
|
| 95 |
with gr.Row():
|
| 96 |
with gr.Column():
|
|
@@ -101,7 +102,7 @@ with gr.Blocks() as demo:
|
|
| 101 |
day_input = gr.Dropdown(choices=list(DAY_MAP.keys()), label="Day of Week", value="Monday")
|
| 102 |
|
| 103 |
with gr.Column():
|
| 104 |
-
gr.Markdown("### 2. Route Selection")
|
| 105 |
gr.Markdown("*Type in the box below to find your route (e.g. '968')*")
|
| 106 |
|
| 107 |
# Search Box
|
|
|
|
| 89 |
|
| 90 |
# --- 3. Build the UI ---
|
| 91 |
with gr.Blocks() as demo:
|
| 92 |
+
gr.Markdown("# HK-TransitFlow-Net Demo")
|
| 93 |
gr.Markdown("Live inference for **KMB & CTB** Bus ETA prediction.")
|
| 94 |
+
gr.Markdown("Predicts estimated journey time for a distance.")
|
| 95 |
|
| 96 |
with gr.Row():
|
| 97 |
with gr.Column():
|
|
|
|
| 102 |
day_input = gr.Dropdown(choices=list(DAY_MAP.keys()), label="Day of Week", value="Monday")
|
| 103 |
|
| 104 |
with gr.Column():
|
| 105 |
+
gr.Markdown("### 2. Route Selection (Optional - Select UNKNOWN to predict without route)")
|
| 106 |
gr.Markdown("*Type in the box below to find your route (e.g. '968')*")
|
| 107 |
|
| 108 |
# Search Box
|