Skip to content
Snippets Groups Projects
Commit a0229c16 authored by Christoph Olberding's avatar Christoph Olberding
Browse files

Update UI/UI.py

parent 8dc08726
Branches
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ def berechne():
loaded_model = pickle.load(open('model.sav', 'rb'))
x_test=np.array([ZielortID,Jahr,Monat,Tag,Wochentag,Stunde,Minute]).reshape(1,-1)
result = loaded_model.predict(x_test)
lsum["text"]='Sie benötigen: '+str(result)[1:3]+' Minuten '+str(result)[3:5]+' Sekunden'
lsum["text"]='Sie benötigen: '+str(int(result/60))+' Minuten '+str(int(result%60))+' Sekunden'
#print(str(result)[1:3]+' Minuten '+str(result)[3:5]+' Sekunden')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment