File size: 660 Bytes
32b1206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.")