Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaystark committed Dec 15, 2019
1 parent 1476404 commit 1409aea
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 1 deletion.
Empty file modified Database.txt
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
14 changes: 14 additions & 0 deletions app.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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')

Expand All @@ -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:
Expand Down
Empty file modified model/.DS_Store
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion model/Predictor.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Binary file modified model/__pycache__/train.cpython-37.pyc
100644 → 100755
Binary file not shown.
Empty file modified model/checkpoints/checkpoint
100644 → 100755
Empty file.
Empty file modified model/checkpoints/cp.ckpt.data-00000-of-00001
100644 → 100755
Empty file.
Empty file modified model/checkpoints/cp.ckpt.index
100644 → 100755
Empty file.
Empty file modified model/train.py
100644 → 100755
Empty file.
Empty file modified resources.txt
100644 → 100755
Empty file.
Empty file modified static/background.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/style.css
100644 → 100755
Empty file.
Empty file modified templates/form.html
100644 → 100755
Empty file.
Empty file modified templates/show_data.html
100644 → 100755
Empty file.
Empty file modified test1.py
100644 → 100755
Empty file.

0 comments on commit 1409aea

Please sign in to comment.