Spaces:
Runtime error
Runtime error
kernelmachine
commited on
Commit
•
233f2a8
1
Parent(s):
2474527
update
Browse files
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 }
|