molokhovdmitry commited on
Commit
9fa3b3c
1 Parent(s): 0d1ee8d

Fix topic word dist plot and .env.example

Browse files
Files changed (2) hide show
  1. .env.example +1 -1
  2. src/app.py +3 -3
.env.example CHANGED
@@ -1,4 +1,4 @@
1
  YT_API_KEY=""
2
  PRED_BATCH_SIZE=512
3
  MAX_COMMENT_SIZE=300
4
- LANG_DETECTION_CONF=0.5
 
1
  YT_API_KEY=""
2
  PRED_BATCH_SIZE=512
3
  MAX_COMMENT_SIZE=300
4
+ LANG_DETECTION_CONF=0.9
src/app.py CHANGED
@@ -154,7 +154,8 @@ def nmf_plots(df,
154
  orientation='h',
155
  base=0),
156
  row=1, col=i+1)
157
- topic_words_fig.update_layout(title_text="Topic Word Distributions")
 
158
 
159
  # Plot topic contribution for the dataset
160
  for col in topic_cols:
@@ -402,9 +403,8 @@ if submit:
402
  if map_checkbox:
403
  st.plotly_chart(map_figure, use_container_width=True)
404
 
405
- cols = st.columns(2)
406
  for i, plot in enumerate(plots):
407
- cols[i % 2].plotly_chart(
408
  plot, sharing='streamlit',
409
  theme='streamlit',
410
  use_container_width=True)
 
154
  orientation='h',
155
  base=0),
156
  row=1, col=i+1)
157
+ topic_words_fig.update_layout(title_text="Topic Word Distributions",
158
+ showlegend=False)
159
 
160
  # Plot topic contribution for the dataset
161
  for col in topic_cols:
 
403
  if map_checkbox:
404
  st.plotly_chart(map_figure, use_container_width=True)
405
 
 
406
  for i, plot in enumerate(plots):
407
+ st.plotly_chart(
408
  plot, sharing='streamlit',
409
  theme='streamlit',
410
  use_container_width=True)