awacke1 commited on
Commit
8cebd63
1 Parent(s): cab1fa3

Update backupapp.py

Browse files
Files changed (1) hide show
  1. backupapp.py +10 -4
backupapp.py CHANGED
@@ -34,9 +34,15 @@ if file_option == "small_file.jsonl":
34
  else:
35
  data = large_data
36
 
37
- filtered_data = filter_by_keyword(data, "Heart")
38
- st.write("Filtered Dataset by 'Heart'")
39
- st.dataframe(filtered_data)
 
 
 
 
 
 
40
 
41
  # Plotly and Seaborn charts for EDA
42
  if st.button("Generate Charts"):
@@ -87,4 +93,4 @@ if st.button("Generate Charts"):
87
  # 10. Regplot (Regression Plot)
88
  fig, ax = plt.subplots()
89
  sns.regplot(x=data.columns[0], y=data.columns[1], data=data)
90
- st.pyplot(fig)
 
34
  else:
35
  data = large_data
36
 
37
+ # Text input for search keyword
38
+ search_keyword = st.text_input("Enter a keyword to filter data (e.g., Heart, Lung, Pain, Memory):")
39
+
40
+ # Button to trigger search
41
+ if st.button("Search"):
42
+ filtered_data = filter_by_keyword(data, search_keyword)
43
+ st.write(f"Filtered Dataset by '{search_keyword}'")
44
+ st.dataframe(filtered_data)
45
+
46
 
47
  # Plotly and Seaborn charts for EDA
48
  if st.button("Generate Charts"):
 
93
  # 10. Regplot (Regression Plot)
94
  fig, ax = plt.subplots()
95
  sns.regplot(x=data.columns[0], y=data.columns[1], data=data)
96
+ st.pyplot(fig)