Update app.py
Browse files
app.py
CHANGED
|
@@ -436,7 +436,7 @@ def analyze_text(text: str, mode: str, classifier: TextClassifier) -> tuple:
|
|
| 436 |
quick_analysis
|
| 437 |
)
|
| 438 |
else:
|
| 439 |
-
|
| 440 |
|
| 441 |
detailed_analysis = []
|
| 442 |
for pred in analysis['sentence_predictions']:
|
|
|
|
| 436 |
quick_analysis
|
| 437 |
)
|
| 438 |
else:
|
| 439 |
+
analysis = classifier.predict_with_local_context(text)
|
| 440 |
|
| 441 |
detailed_analysis = []
|
| 442 |
for pred in analysis['sentence_predictions']:
|