File size: 1,210 Bytes
70264dd
b3397c2
 
70264dd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3eed450
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
39
40
41
42
import streamlit as st
from sidebar import uploader_sidebar
from section_handlers import show_section

def home():
    st.title("Prospectus Lens")
    st.write("Welcome to the Prospectus Lens! Upload the PDF of the prospectus on the left sidebar!")

def cover():
    st.title("Cover")
    if "uploaded_file" in st.session_state:
        show_section("cover_path")
    else:
        st.warning("Please upload a file first!")

def underwriter():
    st.title("Underwriter")
    if "uploaded_file" in st.session_state:
        show_section("underwriter_path")
    else:
        st.warning("Please upload a file first!")

def income_statement():
    st.title("Income Statement")
    if "uploaded_file" in st.session_state:
        show_section("income_statement_path")
    else:
        st.warning("Please upload a file first!")

def balance_sheet():
    st.title("Balance Sheet")
    if "uploaded_file" in st.session_state:
        show_section("balance_sheet_path")
    else:
        st.warning("Please upload a file first!")

def cash_flow():
    st.title("Cash Flow")
    if "uploaded_file" in st.session_state:
        show_section("cash_flow_path")
    else:
        st.warning("Please upload a file first!")