Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -85,9 +85,9 @@ def process_api(text):
|
|
85 |
# Seq_Predicted = Seq_model.predict(padded_sequence)
|
86 |
# predicted_label_index = np.argmax(Seq_Predicted)
|
87 |
return {
|
88 |
-
'Logistic_Predicted': categorize(int(Logistic_Predicted[0]))
|
89 |
'SVM_Predicted': categorize(int(SVM_Predicted[0])),
|
90 |
-
'Article_Content': text
|
91 |
}
|
92 |
|
93 |
# Using Model to handle and return Category Route
|
|
|
85 |
# Seq_Predicted = Seq_model.predict(padded_sequence)
|
86 |
# predicted_label_index = np.argmax(Seq_Predicted)
|
87 |
return {
|
88 |
+
'Logistic_Predicted': categorize(int(Logistic_Predicted[0])),
|
89 |
'SVM_Predicted': categorize(int(SVM_Predicted[0])),
|
90 |
+
'Article_Content': text
|
91 |
}
|
92 |
|
93 |
# Using Model to handle and return Category Route
|