import streamlit as st from loading_file import fetch_data from search import search_application # Fetch data and store it in df df = fetch_data() # Title for the Streamlit app (Move this to the top) st.title("Visa Application Status Checker") # Streamlit UI to input the application number application_number = st.text_input("Enter Application Number:") # Add a search button that triggers the search only when clicked if st.button("Search"): if application_number: # Call the search_application function with both application number and df search_application(application_number, df) else: st.warning("Please enter an Application Number to search.")