mirror of
https://github.com/reiyua/HospitalWaitTimeCalc.git
synced 2026-11-17 06:12:05 +11:00
Turns out is the app.py that's causing it to allow negative wait times...
This commit is contained in:
parent
58cc898ead
commit
ac54499641
1 changed files with 1 additions and 1 deletions
|
|
@ -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__':
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue