Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def transform_count(docs):
|
|
| 43 |
idx = vocab.get(token)
|
| 44 |
if idx is not None:
|
| 45 |
X[i, idx] += 1.0
|
| 46 |
-
return
|
| 47 |
|
| 48 |
with open("nbc_model.json", encoding="utf-8") as f:
|
| 49 |
clf_data = json.load(f)
|
|
|
|
| 43 |
idx = vocab.get(token)
|
| 44 |
if idx is not None:
|
| 45 |
X[i, idx] += 1.0
|
| 46 |
+
return X
|
| 47 |
|
| 48 |
with open("nbc_model.json", encoding="utf-8") as f:
|
| 49 |
clf_data = json.load(f)
|