2gauravc commited on
Commit
03997ba
1 Parent(s): 502394e

Updated FE

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -20,19 +20,21 @@ def perform_search(pname, keywords, num_results):
20
  return (rep_txt)
21
 
22
  # Streamlit app
23
- st.title("Search App")
24
 
25
  # Input fields
26
- name = st.text_input("Enter your name:")
27
- keywords = st.text_input("Enter search keywords:")
28
- num_results = st.slider("Choose the number of search results:", 5, 30, 5, 5)
 
 
 
29
 
30
  # Search button
31
  if st.button("Search"):
32
  # Perform the search and display the results
33
  if name and keywords:
34
  search_results = perform_search(name, keywords, num_results)
35
- st.subheader(f"Search results for '{name}':")
36
- st.write(search_results)
37
  else:
38
  st.error("Please enter your name and search keywords before searching.")
 
20
  return (rep_txt)
21
 
22
  # Streamlit app
23
+ st.title("KYC Screening Assistant")
24
 
25
  # Input fields
26
+ name = st.text_input("Enter party name:")
27
+ keywords = st.text_input("Enter other search words:")
28
+
29
+ st.sidebar.markdown("## Controls")
30
+ st.sidebar.markdown("Choose your **search** *parameters*")
31
+ num_results = st.sidebar.slider("Choose the number of search results:", 5, 30, 20, 5)
32
 
33
  # Search button
34
  if st.button("Search"):
35
  # Perform the search and display the results
36
  if name and keywords:
37
  search_results = perform_search(name, keywords, num_results)
38
+ st.download_button('Download Report',search_results)
 
39
  else:
40
  st.error("Please enter your name and search keywords before searching.")