mudaza commited on
Commit
c64e7a9
·
1 Parent(s): 8f2a805

modified code and add files

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. corpus/y_all_disease.pickle +2 -2
app.py CHANGED
@@ -43,7 +43,7 @@ async def predict(symptoms: Symptoms):
43
  scores, indicies = torch.topk(similarity_vectors, k=len(corpus))
44
  # id_ = df.iloc[indicies].reset_index(drop=True)
45
  ls = df.iloc[indicies].copy()
46
- print(ls.iloc[0])
47
  # id_ = id_.drop_duplicates("label")
48
  ls["scores"] = scores
49
  # scores = scores[id_.index]
 
43
  scores, indicies = torch.topk(similarity_vectors, k=len(corpus))
44
  # id_ = df.iloc[indicies].reset_index(drop=True)
45
  ls = df.iloc[indicies].copy()
46
+ # print(ls.iloc[0])
47
  # id_ = id_.drop_duplicates("label")
48
  ls["scores"] = scores
49
  # scores = scores[id_.index]
corpus/y_all_disease.pickle CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:11a003c5bc180aaff3d06b5f64ee28034512937629b635605a2bb56edd267ff9
3
- size 4045987
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0153ee13f0eafbb5555b3b0fd829bb06056f64562163a3516632ef06774d1f7a
3
+ size 46844