Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -1,3 +1,7 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
import tensorflow as tf
|
2 |
+
from load_model import load_model
|
3 |
+
|
4 |
+
def predict(text):
|
5 |
+
model = load_model()
|
6 |
+
prediction = model.predict([text])
|
7 |
+
return prediction
|