import streamlit as st | |
from loading_file import load_data_file | |
from dataframe import process_dataframe | |
from search import search_application | |
# Title for the app | |
st.title("Visa Application Status Checker") | |
# Load data using the loading_file module | |
ods_file, cached_file_name = load_data_file() | |
if ods_file: | |
# Process the data using the dataframe module | |
df = process_dataframe(ods_file) | |
if not df.empty: | |
# Call the search logic from search module | |
search_application(df) | |
else: | |
st.error("The processed data is empty. Please check the input file.") | |
else: | |
st.error("Failed to load data. Please check the file source.") |