-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPROCEED.py
38 lines (32 loc) · 1020 Bytes
/
PROCEED.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""PROCEED main file."""
import warnings
import pandas as pd
from PIL import Image
import streamlit as st
from datetime import datetime
warnings.simplefilter("ignore", FutureWarning)
# UI components and others func.
from utils.ui_helper import (main_components,
load_data, main_text_and_data_upload, objdict,
)
# Set the configs
APP_TITLE = "PROCEED"
PARAM_FILE = "model_params.json"
# Main Function
def PROCEEDMain():
# Define state
state = objdict()
state['df'] = pd.DataFrame()
# Main components
main_components()
# Welcome text and Data uploading
main_text_and_data_upload(state, APP_TITLE, PARAM_FILE)
# Run PROCEED
if __name__ == '__main__':
try:
PROCEEDMain()
except (ValueError, IndexError) as val_ind_error:
st.error(f"There is a problem with values/parameters or dataset due to {val_ind_error}.")
except TypeError as e:
# st.warning("TypeError exists in {}".format(e))
pass