diff --git a/Database.txt b/Database.txt old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/app.py b/app.py old mode 100644 new mode 100755 index 7451d82..5af0f82 --- a/app.py +++ b/app.py @@ -1,4 +1,7 @@ +#!/usr/bin/env python3 from flask import Flask,render_template,request +from model.Predictor import Predictor +from model.train import xTrain,yTrain app=Flask(__name__,static_folder='static') @@ -24,6 +27,17 @@ def details(): a.append(float(obj['employees'])/float(obj['worth'])) a.append(obj['breaches']) # print(a) + b=[0.9,0.8,1.0,0.7,0.1,0.2] + p=Predictor() + result=p.getPrediction(b) + array=[] + count = 0 + for i in result: + if i>0: + array.append(count) + count+=1 + print(result) + print(array) filename = "database.txt" with open(filename) as f: diff --git a/model/.DS_Store b/model/.DS_Store old mode 100644 new mode 100755 diff --git a/model/Predictor.py b/model/Predictor.py old mode 100644 new mode 100755 index 84c7422..6bbcdf5 --- a/model/Predictor.py +++ b/model/Predictor.py @@ -1,7 +1,7 @@ import random, os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf, tensorflow.keras as keras -from train import xTrain, yTrain +# from train import xTrain, yTrain class Predictor: companies = 20 diff --git a/model/__pycache__/train.cpython-37.pyc b/model/__pycache__/train.cpython-37.pyc old mode 100644 new mode 100755 index 1ee2acb..cac7241 Binary files a/model/__pycache__/train.cpython-37.pyc and b/model/__pycache__/train.cpython-37.pyc differ diff --git a/model/checkpoints/checkpoint b/model/checkpoints/checkpoint old mode 100644 new mode 100755 diff --git a/model/checkpoints/cp.ckpt.data-00000-of-00001 b/model/checkpoints/cp.ckpt.data-00000-of-00001 old mode 100644 new mode 100755 diff --git a/model/checkpoints/cp.ckpt.index b/model/checkpoints/cp.ckpt.index old mode 100644 new mode 100755 diff --git a/model/train.py b/model/train.py old mode 100644 new mode 100755 diff --git a/resources.txt b/resources.txt old mode 100644 new mode 100755 diff --git a/static/background.jpg b/static/background.jpg old mode 100644 new mode 100755 diff --git a/static/style.css b/static/style.css old mode 100644 new mode 100755 diff --git a/templates/form.html b/templates/form.html old mode 100644 new mode 100755 diff --git a/templates/show_data.html b/templates/show_data.html old mode 100644 new mode 100755 diff --git a/test1.py b/test1.py old mode 100644 new mode 100755