Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 30 |
-
if i < dias:
|
| 31 |
-
prediction += ", "
|
| 32 |
|
| 33 |
else:
|
| 34 |
prediction = ""
|
| 35 |
|
| 36 |
-
return render_template("website.html",
|
| 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__':
|