pentarosarium commited on
Commit
e3ebc5a
·
1 Parent(s): b9a262a

progress more (3.12b)

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -250,7 +250,7 @@ def process_file(uploaded_file):
250
 
251
  try:
252
  df = pd.read_excel(uploaded_file, sheet_name='Публикации')
253
-
254
  required_columns = ['Объект', 'Заголовок', 'Выдержки из текста']
255
  missing_columns = [col for col in required_columns if col not in df.columns]
256
  if missing_columns:
@@ -436,7 +436,7 @@ def create_output_file(df, uploaded_file, llm):
436
  def main():
437
 
438
  with st.sidebar:
439
- st.title("::: AI-анализ мониторинга новостей (v.3.12a):::")
440
  st.subheader("по материалам СКАН-ИНТЕРФАКС ")
441
  st.markdown(
442
  """
@@ -495,6 +495,7 @@ def main():
495
  st.subheader("Анализ")
496
  st.dataframe(analysis_df)
497
 
 
498
  output = create_output_file(st.session_state.processed_df, uploaded_file, llm)
499
 
500
  end_time = time.time()
 
250
 
251
  try:
252
  df = pd.read_excel(uploaded_file, sheet_name='Публикации')
253
+ llm = init_langchain_llm()
254
  required_columns = ['Объект', 'Заголовок', 'Выдержки из текста']
255
  missing_columns = [col for col in required_columns if col not in df.columns]
256
  if missing_columns:
 
436
  def main():
437
 
438
  with st.sidebar:
439
+ st.title("::: AI-анализ мониторинга новостей (v.3.12b):::")
440
  st.subheader("по материалам СКАН-ИНТЕРФАКС ")
441
  st.markdown(
442
  """
 
495
  st.subheader("Анализ")
496
  st.dataframe(analysis_df)
497
 
498
+ llm = init_langchain_llm()
499
  output = create_output_file(st.session_state.processed_df, uploaded_file, llm)
500
 
501
  end_time = time.time()