antcar0929 commited on
Commit
c3d0b5d
·
verified ·
1 Parent(s): 7405298

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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 = "ℹ️ Based on Manual Inputs (Modified)"
162
  else:
163
- status_tag = " Based on Map Data"
164
  else:
165
- status_tag = "ℹ️ Based on Manual Inputs"
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():