kernelmachine commited on
Commit
233f2a8
1 Parent(s): 2474527
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,10 +50,10 @@ def score(x, clf, vectorizer):
50
  # score a single document
51
  return clf.predict_proba(vectorizer.transform([x]))
52
 
 
53
 
54
  def start(text):
55
  # print('yaya')
56
- clf, vectorizer = load_model("model/")
57
  # return 'hello'
58
  k = round(score(text, clf, vectorizer)[0][1], 2)
59
  return {"P(high quality)": k }
 
50
  # score a single document
51
  return clf.predict_proba(vectorizer.transform([x]))
52
 
53
+ clf, vectorizer = load_model("model/")
54
 
55
  def start(text):
56
  # print('yaya')
 
57
  # return 'hello'
58
  k = round(score(text, clf, vectorizer)[0][1], 2)
59
  return {"P(high quality)": k }