Spaces:
Sleeping
Sleeping
Commit
·
b1767f6
1
Parent(s):
c9585ee
v.1.56 majority voting for Negative
Browse files
app.py
CHANGED
@@ -216,7 +216,7 @@ class EventDetector:
|
|
216 |
# Weighted voting - prioritize negative signals
|
217 |
if "Negative" in sentiments:
|
218 |
neg_count = sentiments.count("Negative")
|
219 |
-
if neg_count >=
|
220 |
return "Negative"
|
221 |
|
222 |
pos_count = sentiments.count("Positive")
|
@@ -657,7 +657,7 @@ def create_interface():
|
|
657 |
# Create state for file data
|
658 |
current_file = gr.State(None)
|
659 |
|
660 |
-
gr.Markdown("# AI-анализ мониторинга новостей v.1.
|
661 |
|
662 |
with gr.Row():
|
663 |
file_input = gr.File(
|
|
|
216 |
# Weighted voting - prioritize negative signals
|
217 |
if "Negative" in sentiments:
|
218 |
neg_count = sentiments.count("Negative")
|
219 |
+
if neg_count >= 2: # More sensitive to negative sentiment
|
220 |
return "Negative"
|
221 |
|
222 |
pos_count = sentiments.count("Positive")
|
|
|
657 |
# Create state for file data
|
658 |
current_file = gr.State(None)
|
659 |
|
660 |
+
gr.Markdown("# AI-анализ мониторинга новостей v.1.56")
|
661 |
|
662 |
with gr.Row():
|
663 |
file_input = gr.File(
|