lkatcheroff commited on
Commit
67b517e
·
verified ·
1 Parent(s): 7041dc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -22,18 +22,16 @@ def main():
22
 
23
 
24
  output = model.forecast(dias)
25
- prediction = ""
26
  i=0
27
  for result in output:
28
  i+=1
29
- prediction += "Precio de cierre dia " + str(i) +": US$" + str(result)
30
- if i < dias:
31
- prediction += ", "
32
 
33
  else:
34
  prediction = ""
35
 
36
- return render_template("website.html", output = prediction)
37
 
38
  # Running the app
39
  if __name__ == '__main__':
 
22
 
23
 
24
  output = model.forecast(dias)
25
+ prediction = []
26
  i=0
27
  for result in output:
28
  i+=1
29
+ prediction.append("Precio de cierre dia " + str(i) +": US$" + str(result))
 
 
30
 
31
  else:
32
  prediction = ""
33
 
34
+ return render_template("website.html", outputs = prediction)
35
 
36
  # Running the app
37
  if __name__ == '__main__':