Spaces:
Runtime error
Runtime error
Commit ·
8d2ee98
1
Parent(s): f89f887
Update app.py
Browse files15 unmodified lines16171819202115 unmodified linesGE_url = 'https://github.com/GEProject/GEProject/blob/main/Combined_Vars.csv'download = requests.get(GE_url).contentdef predict(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:15 unmodified lines1617181920212223242515 unmodified linesGE_url = 'https://github.com/GEProject/GEProject/blob/main/Combined_Vars.csv'download = requests.get(GE_url).contentGE_data =pd.read_csv(io.StringIO(download.decode('utf-8')))DE_data = GE_data.to_numpy()GE_data = GE_data.tolist()def predict(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:
app.py+4