bestroi commited on
Commit
5e1c778
·
1 Parent(s): 1170afb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import streamlit as st
2
  import pandas as pd
3
- import plotly.graph_objects as go
4
  import plotly.express as px
5
  import nltk
6
 
@@ -89,12 +88,11 @@ def visualize_data(csv_file, sort_entries=False):
89
 
90
  # Expandable section to display context
91
  with st.expander("Click to view context"):
92
- # Display context for each entry using st.write
93
- for _, row in data.iterrows():
94
- st.write("### Entry")
95
- st.write(f"**Lemma:** {row['Lemma']}")
96
- st.write(f"**Book/Chapter:** {row['Book/Chapter']}")
97
- st.write(f"**Context:** {row['Context']}")
98
  st.write('-' * 50)
99
 
100
  def main():
 
1
  import streamlit as st
2
  import pandas as pd
 
3
  import plotly.express as px
4
  import nltk
5
 
 
88
 
89
  # Expandable section to display context
90
  with st.expander("Click to view context"):
91
+ # Display context for each entry
92
+ for index, row in data.iterrows():
93
+ st.write(f"Lemma: {row['Lemma']}")
94
+ st.write(f"Book/Chapter: {row['Book/Chapter']}")
95
+ st.write(f"Context: {row['Context']}")
 
96
  st.write('-' * 50)
97
 
98
  def main():