import streamlit as st from loading_file import load_data_file from dataframe import prepare_dataframe from search import search_application # Streamlit app title st.title("Visa Application Status Checker") # Step 1: Load the data st.subheader("Step 1: Loading the Data") data_file, file_name = load_data_file() if data_file: st.success(f"File '{file_name}' loaded successfully!") # Step 2: Prepare the DataFrame st.subheader("Step 2: Preparing the DataFrame") df = prepare_dataframe(data_file) if df is not None: st.success("DataFrame is ready for searching!") # Step 3: Search for the Application Number st.subheader("Step 3: Search Application Status") search_application(df) else: st.error("Error preparing the DataFrame.") else: st.error("No file data available.")