-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstreamlit.py
154 lines (147 loc) · 6.09 KB
/
streamlit.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
import streamlit as st
import pandas as pd
# Sample Data (Replace with actual file processing logic)
data = {"Nvidia-23": {
"Financial Reporting & Performance": [
"Annual Report Form 10-K Notes",
"Fiscal Year 2023 Revenue and Financial Performance",
"Financial Statements for January 29, 2023",
"Financial Expenses for Fiscal Years 2023, 2022, and 2021",
"Disclosure Controls and Procedures in Periodic Report"
],
"Taxation & Regulatory Compliance": [
"Foreign Asset/Account Reporting Requirements and Exchange Controls",
"Deferred Tax Assets and Liabilities",
"Personal Tax Consultation",
"Data Privacy and Processing Regulations",
"Compliance with Section 409A of the Code",
"Tax-Related Items and Service Recipients",
"Compliance with Exchange Control Laws and Regulations"
],
"Corporate Governance & Leadership": [
"Internal Control over Financial Reporting",
"Proxy Statement Information",
"Securities Exchange Act of 1934 and SEC Filings",
"Board Committee Discretion",
"Executive Leadership at NVIDIA Corporation"
],
"Investments & Market Risks": [
"Risks and Considerations of Investing in Common Stock",
"Liquidity and Cash Management",
"Foreign Currency Forward Contracts",
"Accounting for Gains and Losses on Investments",
"United States Debt Securities and Financial Markets",
"Dividend Program and Commercial Paper Program"
],
"Stock Awards, Compensation & Incentives": [
"Stock Award Agreements and Plan Terms and Conditions",
"Stock Award Assumption and Termination in Corporate Transactions and Change in Control",
"Termination of Continuous Service and Exercise of Awards",
"Performance Goals and Criteria for Compensation under Section 162(m) of the Code",
"Stock Award Grants and Agreements",
"Restricted Stock Unit Awards and Agreements",
"Stock Option Incentives",
"Plan Participation and Agreement Acceptance",
"Grant Date and Vesting of RSUs, PSUs, and Market-based PSUs Awards",
"Share Issuance and Sale",
"Company Affiliates and Employee Relationships"
],
"Mergers, Acquisitions & Corporate Transactions": [
"Fair Value Allocation in Acquisitions",
"Acquisition Termination Cost in Fiscal Year 2023",
"Termination of Arm Acquisition by NVIDIA and SoftBank due to Regulatory Challenges"
],
"Product & Market Strategy": [
"NVIDIA Computing Platforms and Software Solutions",
"NVIDIA AI Cloud Services",
"Product Transitions and Demand for New Products"
],
"Operational & External Business Impact": [
"Inventory Management and Provisions",
"Long-term Operating Leases and Liabilities",
"Time Management/Updates",
"Impact of External Factors on Business Financial Results and Operations",
"Revenue Recognition and Performance Obligations"
],
"Corporate Presence & Brand": [
"NVIDIA Corporation and its Subsidiaries",
"NVIDIA Headquarters and Operations in Santa Clara, California"
]
},
"Nvidia-24":{
"Financial Reporting & Performance": [
"2024 Fiscal Year Revenue Growth in Various Industries",
"Annual Report Form 10-K Notes",
"Financial Statements for January 28, 2024",
"Financial Condition and Results of Operations",
"Financial Expenses for Fiscal Years 2024, 2023, and 2022",
"Disclosure Controls and Procedures"
],
"Taxation & Regulatory Compliance": [
"Income Tax Expense and Benefits",
"USG Licensing Requirements for Exports to China and Country Groups D1, D4, and D5",
"Data Privacy and Security Laws and Regulations",
"Deferred Tax Assets and Valuation Allowance",
"Business Risks and Uncertainties",
"Risk Factors and Uncertainties in Annual Report on Form 10-K"
],
"Corporate Governance & Leadership": [
"Internal Control over Financial Reporting",
"Securities Exchange Act Reporting Requirements",
"Incentive Compensation Policy",
"Proxy Statement Information",
"Executive Leadership at NVIDIA Corporation",
"Share Repurchase Program and Board of Directors"
],
"Investments & Market Risks": [
"Non-Marketable Equity Securities and Investments in Non-Affiliated Entities",
"Stock repurchases and dividends for common stock",
"Liquidity and Cash Management",
"Foreign currency risk management with forward contracts",
"Investment Income and Losses",
"Commercial Paper Program"
],
"Revenue & Sales Strategy": [
"Revenue Recognition and Forecasting for Services and Software Support",
"Compute & Networking Segment Revenue Breakdown",
"Data Center Product Launch Strategy",
"Revenue Recognition and Standalone Selling Price"
],
"Supply Chain & Inventory Management": [
"Product Transitions and Demand Impact",
"Inventory Management and Provisions",
"Operating Lease Liabilities and Assets",
"Supply Chain Management",
"Product Returns and Allowances"
],
"AI, Technology & Business Risks": [
"NVIDIA AI Computing Platform and Software",
"Impact of Geopolitical Conflict on License and Development Arrangements in Israel",
"Negative impact of export controls on AI technology and business",
"Risks of AI and Responsible Technology Use"
],
"Legal & Corporate Litigation": [
"NVIDIA Corporation and Derivative Lawsuits",
"Cryptocurrency Mining and Securities Lawsuits"
],
"Corporate Presence & Brand": [
"NVIDIA's Presence in Santa Clara, California"
]
}
}
# Streamlit App Title
st.title("📊 Topics Super-Grouping using OpenAI")
# File Selection Dropdown
selected_file = st.selectbox("Select a File", list(data.keys()))
# Display High-Level Topics based on selected file
if selected_file:
topics = list(data[selected_file].keys())
selected_topic = st.selectbox("Select a High-Level Topic", topics)
# Display all Sub-Level Topics as a menu
if selected_topic:
sub_topics = data[selected_file][selected_topic]
st.subheader(f"Sub-Level Topics for {selected_topic}:")
# Display each sub-topic as a clickable button
for sub in sub_topics:
if st.button(sub):
st.success(f"✅ You selected: {sub}")