AIEcosystem commited on
Commit
7e83ea9
·
verified ·
1 Parent(s): a247bc0

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +14 -9
src/streamlit_app.py CHANGED
@@ -21,8 +21,9 @@ st.set_page_config(
21
  st.markdown(
22
  """
23
  <style>
 
24
  .stApp {
25
- background: linear-gradient(135deg, #f0f8ff, #f5f0ff, #fff0f5);
26
  color: #000000;
27
  font-family: 'Inter', sans-serif;
28
  }
@@ -177,11 +178,15 @@ if st.button("Results"):
177
  st.dataframe(df, use_container_width=True)
178
  with st.expander("See Glossary of tags"):
179
  st.write('''
180
- -**word**: ['keyphrase extracted from your text data']
181
- -**score**: ['accuracy score; how accurately a tag has been assigned']
182
- -**label**: ['label (tag) assigned to a given extracted keyphrase']
183
- -**start**: ['index of the start of the corresponding entity']
184
- -**end**: ['index of the end of the corresponding entity']
 
 
 
 
185
  ''')
186
 
187
  # --- Most Frequent Keyphrases ---
@@ -206,8 +211,8 @@ if st.button("Results"):
206
  )
207
  fig_frequent_bar.update_layout(
208
  yaxis={'categoryorder': 'total ascending'},
209
- paper_bgcolor='#000000', # Sets the background color of the entire figure
210
- plot_bgcolor='#000000' # Sets the background color of the plotting area
211
  )
212
 
213
  st.plotly_chart(fig_frequent_bar, use_container_width=True)
@@ -226,7 +231,7 @@ if st.button("Results"):
226
  color='word',
227
  color_continuous_scale=px.colors.sequential.Plasma
228
  )
229
- fig_treemap.update_layout(margin=dict(t=50, l=25, r=25, b=25), paper_bgcolor='#000000', plot_bgcolor='#000000')
230
  st.plotly_chart(fig_treemap, use_container_width=True)
231
  if experiment:
232
  experiment.log_figure(figure=fig_treemap, figure_name="entity_treemap")
 
21
  st.markdown(
22
  """
23
  <style>
24
+
25
  .stApp {
26
+ background-color: #f0f8ff; /* A single, solid color */
27
  color: #000000;
28
  font-family: 'Inter', sans-serif;
29
  }
 
178
  st.dataframe(df, use_container_width=True)
179
  with st.expander("See Glossary of tags"):
180
  st.write('''
181
+ **word**: ['keyphrase extracted from your text data']
182
+
183
+ **score**: ['accuracy score; how accurately a tag has been assigned']
184
+
185
+ **label**: ['label (tag) assigned to a given extracted keyphrase']
186
+
187
+ **start**: ['index of the start of the corresponding entity']
188
+
189
+ **end**: ['index of the end of the corresponding entity']
190
  ''')
191
 
192
  # --- Most Frequent Keyphrases ---
 
211
  )
212
  fig_frequent_bar.update_layout(
213
  yaxis={'categoryorder': 'total ascending'},
214
+ paper_bgcolor='#f0f8ff', # Sets the background color of the entire figure
215
+ plot_bgcolor='#f0f8ff' # Sets the background color of the plotting area
216
  )
217
 
218
  st.plotly_chart(fig_frequent_bar, use_container_width=True)
 
231
  color='word',
232
  color_continuous_scale=px.colors.sequential.Plasma
233
  )
234
+ fig_treemap.update_layout(margin=dict(t=50, l=25, r=25, b=25), paper_bgcolor='#f0f8ff', plot_bgcolor='#f0f8ff')
235
  st.plotly_chart(fig_treemap, use_container_width=True)
236
  if experiment:
237
  experiment.log_figure(figure=fig_treemap, figure_name="entity_treemap")