Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
93 |
-
for
|
94 |
-
st.write("
|
95 |
-
st.write(f"
|
96 |
-
st.write(f"
|
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():
|