aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2021-12-17 04:03:07 -0500
committerPriyansh <[email protected]>2021-12-17 04:03:07 -0500
commitcefabf931972bd6120ff66a8cedfdbd043042ac1 (patch)
tree79deaa6cb5267cf93e0e4cdba53d5ec96ceb4f91
parent02362e38881abe32cd4a0b716e7888668e4b724c (diff)
downloadtemp_pred_arima-cefabf931972bd6120ff66a8cedfdbd043042ac1.tar.xz
temp_pred_arima-cefabf931972bd6120ff66a8cedfdbd043042ac1.zip
removed requirement for arima.pkl
-rw-r--r--app.py2
-rw-r--r--initial_setup.py18
2 files changed, 9 insertions, 11 deletions
diff --git a/app.py b/app.py
index 3e5115e..a14497b 100644
--- a/app.py
+++ b/app.py
@@ -2,10 +2,8 @@ from flask import Flask, render_template
from flask import request, jsonify
import pandas as pd
import json
-from libs.decompressor import decompress_arima
from predictor import render_plot
-decompress_arima()
app = Flask(__name__)
@app.route("/")
diff --git a/initial_setup.py b/initial_setup.py
index e7ffa6c..e5428d9 100644
--- a/initial_setup.py
+++ b/initial_setup.py
@@ -24,16 +24,16 @@ def download(url, filename):
sys.stdout.flush()
sys.stdout.write('\n')
-if not exists('arima.pkl'):
- if not exists('arima.compressed'):
- print('[*] Downloading arima.compressed')
- download("https://github.com/luciferreeves/Analyzing-Climate-Change-using-Earth-Surface-Temperature-Visualization/releases/download/large_files/arima.compressed", 'arima.compressed')
- print('[*] Decompressing arima.compressed')
- decompress_arima()
+# if not exists('arima.pkl'):
+# if not exists('arima.compressed'):
+# print('[*] Downloading arima.compressed')
+# download("https://github.com/luciferreeves/Analyzing-Climate-Change-using-Earth-Surface-Temperature-Visualization/releases/download/large_files/arima.compressed", 'arima.compressed')
+# print('[*] Decompressing arima.compressed')
+# decompress_arima()
-if not exists('arima.pkl') and exists('arima.compressed'):
- print('[*] Decompressing arima.compressed')
- decompress_arima()
+# if not exists('arima.pkl') and exists('arima.compressed'):
+# print('[*] Decompressing arima.compressed')
+# decompress_arima()
if not exists('database.db'):
print('[*] Downloading database.db')