Spaces:
Runtime error
Runtime error
Commit ·
b2d2d6b
1
Parent(s): e4c637f
Update app.py
Browse files18 unmodified lines19202122232425262718 unmodified linesdef predict(dist, flight_cycle, t50_max, nc_avg, ps30_max, nrc_max, bpr_max, w32_avg):df = pd.DataFrame({'dist': [dist], 'flight_cycle': [flight_cycle], 't50_max': [t50_max], 'nc_avg': [nc_avg], 'ps30_max': [ps30_max],'nrc_max': [nrc_max], 'bpr_max': [bpr_max], 'w32_avg': [w32_avg]})with urllib.request.urlopen('https://github.com/GEProject/GEProject/blob/main/final_model.pkl?raw=true') as response, open('final_model.pkl', 'wb') as out_file:shutil.copyfileobj(response, out_file)18 unmodified lines192021222324252618 unmodified linesdef predict(dist, flight_cycle, t50_max, nc_avg, ps30_max, nrc_max, bpr_max, w32_avg):df = pd.DataFrame({dist, flight_cycle, t50_max, nc_avg, ps30_max, nrc_max, bpr_max, w32_avg})with urllib.request.urlopen('https://github.com/GEProject/GEProject/blob/main/final_model.pkl?raw=true') as response, open('final_model.pkl', 'wb') as out_file:shutil.copyfileobj(response, out_file)
app.py+2-3