howlbz commited on
Commit
d0b522a
·
1 Parent(s): f39f1d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -16,17 +16,17 @@ model = mr.get_model("xgboost_model", version=1)
16
 
17
 
18
  def forecast():
19
- x = 0
20
- # input_list = [ 0. , 24 , -0.68645433, -0.06804887, -0.31264014,
21
- # -0.13749569, -0.32063957, -0.2942814 , -0.18460245, -0.41253886,
22
- # 0.06395449, 0.71276574, -0.36466156, -1.03879548, -0.65985627,
23
- # 0 , 0 , 0.12254366, 0.39172671, 0.34205118,
24
- # 0.21383452, -1.0216134 , 0.40277851, -0.34577169, -0.36832646,
25
- # -0.7210296 , 0 ]
26
-
27
- #res = model.predict(x)
28
 
29
- return 10
 
 
 
 
 
 
 
 
 
30
 
31
  demo = gr.Interface(
32
  fn=forecast,
 
16
 
17
 
18
  def forecast():
 
 
 
 
 
 
 
 
 
19
 
20
+ x = [ 0. , 24 , -0.68645433, -0.06804887, -0.31264014,
21
+ -0.13749569, -0.32063957, -0.2942814 , -0.18460245, -0.41253886,
22
+ 0.06395449, 0.71276574, -0.36466156, -1.03879548, -0.65985627,
23
+ 0 , 0 , 0.12254366, 0.39172671, 0.34205118,
24
+ 0.21383452, -1.0216134 , 0.40277851, -0.34577169, -0.36832646,
25
+ -0.7210296 , 0 ]
26
+
27
+ res = model.predict(np.asarray(x).reshape(1, -1))
28
+
29
+ return res
30
 
31
  demo = gr.Interface(
32
  fn=forecast,