Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,967 changes: 2,967 additions & 0 deletions ^NSEI.csv

Large diffs are not rendered by default.

Binary file added __pycache__/ts_models.cpython-38.pyc
Binary file not shown.
31 changes: 31 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from flask import Flask, jsonify, render_template
from ts_models import multivariate_ts_lstm
import pandas as pd
import numpy as np
import sklearn
import json
import pickle

app = Flask(__name__)

# Define the route for the home page
@app.route('/')
def index():
return render_template('index.html')

@app.route('/data')
def data():
# Read the contents of test.json
with open('test.json', 'r') as test_file:
test_data = json.load(test_file)

# Read the contents of predictions.json
with open('predictions.json', 'r') as predictions_file:
predictions_data = json.load(predictions_file)

# Access the data as needed
# For example, convert the data to lists and return as JSON
return jsonify(test=test_data, predictions=predictions_data)

if __name__ == '__main__':
app.run()
Loading