Spaces:
Running
Running
Commit
·
7a99adf
1
Parent(s):
a1bce75
3.72
Browse files
app.py
CHANGED
@@ -562,7 +562,24 @@ class ProcessingUI:
|
|
562 |
# Timeline container
|
563 |
if 'timeline_container' not in st.session_state:
|
564 |
st.session_state.timeline_container = st.container()
|
565 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
def setup_analytics_tab(self):
|
567 |
"""Setup the analytics display"""
|
568 |
# Create containers for analytics
|
@@ -1548,7 +1565,7 @@ def main():
|
|
1548 |
st.set_page_config(layout="wide")
|
1549 |
|
1550 |
with st.sidebar:
|
1551 |
-
st.title("::: AI-анализ мониторинга новостей (v.3.
|
1552 |
st.subheader("по материалам СКАН-ИНТЕРФАКС")
|
1553 |
|
1554 |
model_choice = st.radio(
|
|
|
562 |
# Timeline container
|
563 |
if 'timeline_container' not in st.session_state:
|
564 |
st.session_state.timeline_container = st.container()
|
565 |
+
|
566 |
+
def _update_events_view(self, row, event_type):
|
567 |
+
"""Update events timeline"""
|
568 |
+
if event_type != 'Нет':
|
569 |
+
event_html = f"""
|
570 |
+
<div class='timeline-item'>
|
571 |
+
<div class='timeline-marker'></div>
|
572 |
+
<div class='timeline-content'>
|
573 |
+
<h3>{event_type}</h3>
|
574 |
+
<p><strong>{row['Объект']}</strong></p>
|
575 |
+
<p>{row['Заголовок']}</p>
|
576 |
+
<p>{row['Выдержки из текста']}</p>
|
577 |
+
<small>{datetime.now().strftime('%H:%M:%S')}</small>
|
578 |
+
</div>
|
579 |
+
</div>
|
580 |
+
"""
|
581 |
+
with self.timeline_container:
|
582 |
+
st.markdown(event_html, unsafe_allow_html=True)
|
583 |
def setup_analytics_tab(self):
|
584 |
"""Setup the analytics display"""
|
585 |
# Create containers for analytics
|
|
|
1565 |
st.set_page_config(layout="wide")
|
1566 |
|
1567 |
with st.sidebar:
|
1568 |
+
st.title("::: AI-анализ мониторинга новостей (v.3.72):::")
|
1569 |
st.subheader("по материалам СКАН-ИНТЕРФАКС")
|
1570 |
|
1571 |
model_choice = st.radio(
|