Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ def process_api(text):
|
|
106 |
|
107 |
return {
|
108 |
'predicted_label_logistic': decodedLabel(int(Logistic_Predicted[0])),
|
109 |
-
'probability_logistic': int(float(np.max(Logistic_Predicted_proba))*10000//100),
|
110 |
'SVM_Predicted': decodedLabel(int(SVM_Predicted[0])),
|
111 |
# 'LSTM': decodedLabel(int(predicted_label_index)),
|
112 |
'Article_Content': text
|
@@ -219,6 +219,7 @@ if url:
|
|
219 |
# "predicted_label_logistic": result.get("predicted_label_logistic"),
|
220 |
# "probability_logistic": result.get("probability_logistic")
|
221 |
# },
|
|
|
222 |
"SVC": result.get("SVM_Predicted"),
|
223 |
# "LSTM": result.get("LSTM")
|
224 |
})
|
|
|
106 |
|
107 |
return {
|
108 |
'predicted_label_logistic': decodedLabel(int(Logistic_Predicted[0])),
|
109 |
+
#'probability_logistic': int(float(np.max(Logistic_Predicted_proba))*10000//100),
|
110 |
'SVM_Predicted': decodedLabel(int(SVM_Predicted[0])),
|
111 |
# 'LSTM': decodedLabel(int(predicted_label_index)),
|
112 |
'Article_Content': text
|
|
|
219 |
# "predicted_label_logistic": result.get("predicted_label_logistic"),
|
220 |
# "probability_logistic": result.get("probability_logistic")
|
221 |
# },
|
222 |
+
"Logistic": result.get("predicted_label_logistic"),
|
223 |
"SVC": result.get("SVM_Predicted"),
|
224 |
# "LSTM": result.get("LSTM")
|
225 |
})
|