Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +66 -2
src/streamlit_app.py
CHANGED
|
@@ -6,7 +6,7 @@ import plotly.graph_objects as go
|
|
| 6 |
st.title("Financial Modeling App")
|
| 7 |
|
| 8 |
# Tab setup
|
| 9 |
-
tabs = st.tabs(["Time Value of Money", "Consistent Cash Flow Investment", "Monte Carlo Simulation"])
|
| 10 |
|
| 11 |
# --- Time Value of Money ---
|
| 12 |
with tabs[0]:
|
|
@@ -56,4 +56,68 @@ with tabs[2]:
|
|
| 56 |
yaxis_title="Portfolio Value (normalized)",
|
| 57 |
showlegend=False)
|
| 58 |
|
| 59 |
-
st.plotly_chart(fig)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
st.title("Financial Modeling App")
|
| 7 |
|
| 8 |
# Tab setup
|
| 9 |
+
tabs = st.tabs(["Time Value of Money", "Consistent Cash Flow Investment", "Monte Carlo Simulation", "Basic Company Evaluation"])
|
| 10 |
|
| 11 |
# --- Time Value of Money ---
|
| 12 |
with tabs[0]:
|
|
|
|
| 56 |
yaxis_title="Portfolio Value (normalized)",
|
| 57 |
showlegend=False)
|
| 58 |
|
| 59 |
+
st.plotly_chart(fig)
|
| 60 |
+
|
| 61 |
+
# --- Company Evaluation ---
|
| 62 |
+
with tabs[3]:
|
| 63 |
+
st.header("Basic Company Evaluation")
|
| 64 |
+
st.success("Please copy the following into ChatGPT or any AI model with internet accesss.")
|
| 65 |
+
st.markdown(
|
| 66 |
+
"""
|
| 67 |
+
Please feel free to use our [searchbot](https://huggingface.co/spaces/eagle0504/searchbot).
|
| 68 |
+
"""
|
| 69 |
+
)
|
| 70 |
+
st.warning("Please change COMPANY_NAME to the name you want.")
|
| 71 |
+
st.markdown(
|
| 72 |
+
"""
|
| 73 |
+
TITLE: Company/Business Evaluation Framework
|
| 74 |
+
|
| 75 |
+
Guidance: Use the following structured framework to assess the investment or acquisition value of target company: {{COMPANY_NAME}}, or to diagnose its strategic and operational profile.
|
| 76 |
+
|
| 77 |
+
1. Industry Attributes
|
| 78 |
+
Evaluate the industry characteristics and growth potential. Which one of the following does the target company belong to and why?
|
| 79 |
+
- Top-tier sectors (CAGR > 60%): e.g., internet finance, online gaming, digital commerce.
|
| 80 |
+
- High-growth sectors (CAGR 30–60%): e.g., new energy, advanced tech, core materials, biotech, beauty.
|
| 81 |
+
- Stable-growth sectors (CAGR 10–30%): e.g., general pharma, premium liquor, education, wellness.
|
| 82 |
+
- Moderate-growth sectors (CAGR 5–10%): e.g., general consumer, finance, securities, municipal infrastructure.
|
| 83 |
+
- Special industries: e.g., defense/military.
|
| 84 |
+
|
| 85 |
+
2. Industry Cycle Position
|
| 86 |
+
Determine the phase of the current industry cycle. Which of the following cycle does the target company belong to and why?
|
| 87 |
+
- Expansion (growth phase)
|
| 88 |
+
- Maturity (balanced/stable phase)
|
| 89 |
+
- Contraction (declining phase)
|
| 90 |
+
- Bottoming out (recovery phase)
|
| 91 |
+
|
| 92 |
+
3. Business Model and Market Position
|
| 93 |
+
Assess the competitive stance and strategic capabilities:
|
| 94 |
+
- Technological leadership and risk of substitution
|
| 95 |
+
- Market share and dominance of top players
|
| 96 |
+
- Revenue structure and key client profiles (who, where, what need)
|
| 97 |
+
- Operational strengths (management, R&D, cost efficiency)
|
| 98 |
+
- Depth and stability of the core technical team
|
| 99 |
+
|
| 100 |
+
4. Corporate Governance
|
| 101 |
+
Evaluate internal management practices:
|
| 102 |
+
- Leadership strength and strategic execution
|
| 103 |
+
- Governance structure (Board-CEO role clarity, org design, delegation)
|
| 104 |
+
- Internal controls and processes
|
| 105 |
+
- Use of technology in business operations
|
| 106 |
+
- Risk and compliance management (business, tax, legal)
|
| 107 |
+
|
| 108 |
+
5. Financial Health
|
| 109 |
+
Review critical financial metrics and provide summary statistics about the target company:
|
| 110 |
+
- Sustained revenue growth above 20% over multiple years
|
| 111 |
+
- Gross margin above 40%
|
| 112 |
+
- Debt-to-asset ratio below 60%
|
| 113 |
+
- Low accounts receivable/payable risk
|
| 114 |
+
- Positive operating cash flow
|
| 115 |
+
- Return on equity/investment above 10%
|
| 116 |
+
|
| 117 |
+
6. Valuation
|
| 118 |
+
Estimate the fair value and pricing of the business:
|
| 119 |
+
- Base valuation on cash holdings, net assets, and profitability: Provide basic stats regarding this point.
|
| 120 |
+
- P/E multiples: High-growth firms may justify 20–40x earnings; most public firms fall between 10–20x; <10x suggests undervaluation or risk: Provide basic stats regarding this point.
|
| 121 |
+
- EBITDA multiples: Use a benchmark multiple of 5–15x EBITDA, depending on sector maturity and profitability: Provide basic stats regarding this point.
|
| 122 |
+
"""
|
| 123 |
+
)
|