soojeongcrystal commited on
Commit
6ed831e
·
verified ·
1 Parent(s): 3b6c6b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -264,6 +264,7 @@ def download_topic_assignment(df):
264
  data=csv,
265
  file_name='topic_assignment.csv',
266
  mime='text/csv',
 
267
  )
268
 
269
  # 스타일 설정
@@ -430,7 +431,7 @@ if uploaded_file is not None:
430
 
431
  # 토픽 할당 데이터 다운로드
432
  df['topic'] = lda_output.argmax(axis=1) + 1
433
- download_topic_assignment(df)
434
 
435
  # 종합 해석
436
  if api_key:
@@ -494,7 +495,7 @@ if uploaded_file is not None:
494
  # 토픽 할당 데이터 다운로드
495
  topic_column_name = f'topic_{condition_column}'
496
  filtered_df[topic_column_name] = lda_output.argmax(axis=1) + 1
497
- download_topic_assignment(filtered_df)
498
 
499
  # 종합 해석
500
  if api_key:
 
264
  data=csv,
265
  file_name='topic_assignment.csv',
266
  mime='text/csv',
267
+ key=f"download_button_{key_suffix}"
268
  )
269
 
270
  # 스타일 설정
 
431
 
432
  # 토픽 할당 데이터 다운로드
433
  df['topic'] = lda_output.argmax(axis=1) + 1
434
+ download_topic_assignment(df, key_suffix='전체분석')
435
 
436
  # 종합 해석
437
  if api_key:
 
495
  # 토픽 할당 데이터 다운로드
496
  topic_column_name = f'topic_{condition_column}'
497
  filtered_df[topic_column_name] = lda_output.argmax(axis=1) + 1
498
+ download_topic_assignment(filtered_df, key_suffix='조건부분석')
499
 
500
  # 종합 해석
501
  if api_key: