Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,11 +158,11 @@ def predict_fn(manual_dist, manual_stops, hour, day_name, route_id, start_str, e
|
|
| 158 |
diff_stops = abs(map_stops - float(manual_stops))
|
| 159 |
|
| 160 |
if diff_dist > 50 or diff_stops > 0: # 50m tolerance
|
| 161 |
-
status_tag = "
|
| 162 |
else:
|
| 163 |
-
status_tag = "
|
| 164 |
else:
|
| 165 |
-
status_tag = "
|
| 166 |
|
| 167 |
try:
|
| 168 |
inputs = {
|
|
@@ -188,6 +188,7 @@ def predict_fn(manual_dist, manual_stops, hour, day_name, route_id, start_str, e
|
|
| 188 |
with gr.Blocks(title="HK-TransitFlow-Net") as demo:
|
| 189 |
gr.Markdown("# HK-TransitFlow-Net Demo")
|
| 190 |
gr.Markdown("Predicts KMB/CTB bus travel time.")
|
|
|
|
| 191 |
|
| 192 |
with gr.Row():
|
| 193 |
with gr.Column():
|
|
|
|
| 158 |
diff_stops = abs(map_stops - float(manual_stops))
|
| 159 |
|
| 160 |
if diff_dist > 50 or diff_stops > 0: # 50m tolerance
|
| 161 |
+
status_tag = "Manual Inputs"
|
| 162 |
else:
|
| 163 |
+
status_tag = "Computed Data"
|
| 164 |
else:
|
| 165 |
+
status_tag = "Manual Inputs"
|
| 166 |
|
| 167 |
try:
|
| 168 |
inputs = {
|
|
|
|
| 188 |
with gr.Blocks(title="HK-TransitFlow-Net") as demo:
|
| 189 |
gr.Markdown("# HK-TransitFlow-Net Demo")
|
| 190 |
gr.Markdown("Predicts KMB/CTB bus travel time.")
|
| 191 |
+
gr.Markdown("Model: https://huggingface.co/WheelsTransit/HK-TransitFlow-Net")
|
| 192 |
|
| 193 |
with gr.Row():
|
| 194 |
with gr.Column():
|