Turns out is the app.py that's causing it to allow negative wait times...

This commit is contained in:
Ray 2026-06-12 04:08:33 +00:00 • committed by GitHub
parent 58cc898ead
commit ac54499641
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ def show_waiting_time():
# model = joblib.load({folder and model name}) # model = joblib.load({folder and model name})
prediction = model.predict(Xnp) prediction = model.predict(Xnp)
return render_template('WaitingTime.html', waittime=round(prediction[0])) return render_template('WaitingTime.html', waittime=round(max(0,prediction[0])))
if __name__ == '__main__': if __name__ == '__main__':