Spaces:
Runtime error
Runtime error
Updated FE
Browse files
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("
|
24 |
|
25 |
# Input fields
|
26 |
-
name = st.text_input("Enter
|
27 |
-
keywords = st.text_input("Enter search
|
28 |
-
|
|
|
|
|
|
|
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.
|
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.")
|