predicting fake reviews as genuine
Browse files
app.py
CHANGED
|
@@ -16,6 +16,7 @@ def analyze_review(reviewText):
|
|
| 16 |
|
| 17 |
try:
|
| 18 |
result = predict_review(reviewText)
|
|
|
|
| 19 |
|
| 20 |
if "error" in result and result["prediction"] == "error":
|
| 21 |
return f"error: {result['error']}"
|
|
|
|
| 16 |
|
| 17 |
try:
|
| 18 |
result = predict_review(reviewText)
|
| 19 |
+
print(f"raw result: {result}", flush=True)
|
| 20 |
|
| 21 |
if "error" in result and result["prediction"] == "error":
|
| 22 |
return f"error: {result['error']}"
|