Skip to content

Commit

Permalink
Merge branch 'main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-v committed Jun 12, 2022
2 parents 0599987 + fd18434 commit 0e902c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BLOCK/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import block as blk
import databse
import time
from model import get_

'''
try:
Expand Down Expand Up @@ -61,5 +62,6 @@ def other_user_pub_key(api, token):
else:
return jsonify()



@app.route('/chat/symptoms=<symptoms_list>') #symptioms should be like 0,1,0,0,0,1,0........
def sym_deis(symptoms):
return get_().pridict(symptoms)
2 changes: 2 additions & 0 deletions BLOCK/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@


import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
Expand Down Expand Up @@ -33,3 +34,4 @@ def pridict(self, symptm):
return enco.inverse_transform(prd)

#print(get_().pridict('1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0'))

0 comments on commit 0e902c3

Please sign in to comment.