jiawenchim commited on
Commit
81058b9
1 Parent(s): add832c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,8 +33,6 @@ def predict_energy(f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13):
33
  return output
34
 
35
 
36
- test = predict_energy(11,20,8.69,0.93,2.96,0,0.481769,0.475692,0.377077,0.374385,0.474538,0.523154,0.773923)
37
- print(test)
38
 
39
  # Interface Inputs
40
  inputs_app = [gr.Slider(0,12, step=1, label='Month', value=11),
@@ -62,7 +60,9 @@ weather_predictor_app = gr.Interface(fn=predict_energy,
62
  outputs=outputs_app,
63
  # allow_flagging="manual",
64
  # live=True,
65
- examples = [[2,23,3.93,0.85,2.75,0,0.428821,0.507056,0.658782,0.722878,0.694360,0.657011,0.587121]])
 
 
66
  # ["Random Forest", 37,28,18,7,4,-2,43,18,4,1019,1016,1010,31,29,16,29,13,0,6,244,2015,7],
67
  # ["XGBoost", 16,12,8,11,7,4,94,69,52,1014,1012,1009,10,10,10,14,5,0,5,35,2004,10]],
68
  # title = "Energy Consumption Prediction (London)",
 
33
  return output
34
 
35
 
 
 
36
 
37
  # Interface Inputs
38
  inputs_app = [gr.Slider(0,12, step=1, label='Month', value=11),
 
60
  outputs=outputs_app,
61
  # allow_flagging="manual",
62
  # live=True,
63
+ examples = [[2,23,3.93,0.85,2.75,0,0.428821,0.507056,0.658782,0.722878,0.694360,0.657011,0.587121],
64
+ [8,15,23.34,0.45,5.32,0,0.341136,0.337360,0.332931,0.336212,0.338439,0.327198,0.316899],
65
+ [12,8,2.10,0.96,1.34,0.0,0.327180,0.278838,0.253315,0.247601,0.262393,0.326879,0.458636]])
66
  # ["Random Forest", 37,28,18,7,4,-2,43,18,4,1019,1016,1010,31,29,16,29,13,0,6,244,2015,7],
67
  # ["XGBoost", 16,12,8,11,7,4,94,69,52,1014,1012,1009,10,10,10,14,5,0,5,35,2004,10]],
68
  # title = "Energy Consumption Prediction (London)",