keithhon commited on
Commit
df46194
·
1 Parent(s): cfcb632

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from sentence_transformers.util import cos_sim
3
  import numpy as np
4
 
5
  def textToFloatVector(text):
6
- x = np.fromstring(a, dtype=float, sep=',')
7
  vec = x.astype(np.float)
8
  return vec
9
 
 
3
  import numpy as np
4
 
5
  def textToFloatVector(text):
6
+ x = np.fromstring(text, dtype=float, sep=',')
7
  vec = x.astype(np.float)
8
  return vec
9