Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,12 +63,12 @@ def predict(request: PredictRequest):
|
|
| 63 |
confidence_score = probabilities[prediction_label] # Tahmin edilen etiketin skoru
|
| 64 |
|
| 65 |
# Etiketi (0/1) anlaşılır metne çevir
|
| 66 |
-
label_map = {0: "YALAN", 1: "DOĞRU"}
|
| 67 |
|
| 68 |
return {
|
| 69 |
"text": request.text,
|
| 70 |
"prediction_label": int(prediction_label),
|
| 71 |
-
"prediction_text": label_map.get(int(prediction_label), "Bilinmiyor"),
|
| 72 |
"confidence_score": float(confidence_score)
|
| 73 |
}
|
| 74 |
|
|
|
|
| 63 |
confidence_score = probabilities[prediction_label] # Tahmin edilen etiketin skoru
|
| 64 |
|
| 65 |
# Etiketi (0/1) anlaşılır metne çevir
|
| 66 |
+
#label_map = {0: "YALAN", 1: "DOĞRU"}
|
| 67 |
|
| 68 |
return {
|
| 69 |
"text": request.text,
|
| 70 |
"prediction_label": int(prediction_label),
|
| 71 |
+
#"prediction_text": label_map.get(int(prediction_label), "Bilinmiyor"),
|
| 72 |
"confidence_score": float(confidence_score)
|
| 73 |
}
|
| 74 |
|