pentarosarium commited on
Commit
537a093
·
1 Parent(s): 4b79d7d
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -660,7 +660,7 @@ def process_file(uploaded_file, model_choice, translation_method=None):
660
  # Initialize UI and control systems
661
  ui = ProcessingUI()
662
  translator = TranslationSystem()
663
- #event_detector = EventDetectionSystem()
664
 
665
  # Load and prepare data
666
  df = pd.read_excel(uploaded_file, sheet_name='Публикации')
@@ -716,7 +716,7 @@ def process_file(uploaded_file, model_choice, translation_method=None):
716
  df.at[idx, 'Sentiment'] = sentiment
717
 
718
  # Event detection using BERT/ MT-5
719
- event_type, event_summary = FallbackLLMSystem().detect_events(
720
  row['Выдержки из текста'],
721
  row['Объект']
722
  )
@@ -1164,7 +1164,7 @@ def main():
1164
  st.set_page_config(layout="wide")
1165
 
1166
  with st.sidebar:
1167
- st.title("::: AI-анализ мониторинга новостей (v.3.66):::")
1168
  st.subheader("по материалам СКАН-ИНТЕРФАКС")
1169
 
1170
  model_choice = st.radio(
 
660
  # Initialize UI and control systems
661
  ui = ProcessingUI()
662
  translator = TranslationSystem()
663
+ event_detector = EventDetectionSystem()
664
 
665
  # Load and prepare data
666
  df = pd.read_excel(uploaded_file, sheet_name='Публикации')
 
716
  df.at[idx, 'Sentiment'] = sentiment
717
 
718
  # Event detection using BERT/ MT-5
719
+ event_type, event_summary = event_detector.detect_event_type(
720
  row['Выдержки из текста'],
721
  row['Объект']
722
  )
 
1164
  st.set_page_config(layout="wide")
1165
 
1166
  with st.sidebar:
1167
+ st.title("::: AI-анализ мониторинга новостей (v.3.67):::")
1168
  st.subheader("по материалам СКАН-ИНТЕРФАКС")
1169
 
1170
  model_choice = st.radio(