luisejdm commited on
Commit
fd2196d
·
1 Parent(s): 9c36bbe

add educational purposes only legend

Browse files
Files changed (1) hide show
  1. app.py +41 -1
app.py CHANGED
@@ -41,15 +41,38 @@ def build_demo() -> gr.Blocks:
41
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif !important;
42
  box-sizing: border-box !important;
43
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  """
45
 
46
  with gr.Blocks(theme=gr.themes.Base(), title="Financial Agent", css=custom_css) as demo:
 
47
  gr.Markdown(
48
  """
49
  # Financial Agent
50
  Uses **LLaMA 3.3 70B** via NVIDIA NIM (OpenAI-compatible API).
51
  Ask for stock prices, company profiles, and more! The agent can use tools to fetch real-time data and provide accurate responses.
52
- """
 
53
  )
54
 
55
  with gr.Row():
@@ -98,6 +121,7 @@ def build_demo() -> gr.Blocks:
98
  | Build a low-risk portfolio | "Create a minimum variance portfolio with Microsoft, Google, and Amazon" |
99
  | Maximize return for the risk taken | "Give me the best risk-return portfolio using Apple, Nvidia, and Meta" |
100
  | Reduce downside risk compared to the S&P500 | "Build a portfolio that minimizes losses relative to the S&P500 using these 5 stocks" |
 
101
  | Check Mexican CETES rates | "What's the 28-day CETES rate today?" |
102
  | Know monthly inflation in Mexico | "What was Mexico's monthly inflation last month?" |
103
  | Know annual inflation in Mexico | "What's the current annual inflation rate in Mexico?" |
@@ -111,6 +135,22 @@ def build_demo() -> gr.Blocks:
111
  """
112
  )
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  return demo
115
 
116
 
 
41
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif !important;
42
  box-sizing: border-box !important;
43
  }
44
+
45
+ /* ========== TITLE ========== */
46
+ #app-title {
47
+ background: transparent !important;
48
+ border: none !important;
49
+ padding: 8px 0 !important;
50
+ }
51
+
52
+ /* ========== DISCLAIMER BANNER ========== */
53
+ #disclaimer-banner {
54
+ background-color: #3F3F46 !important;
55
+ border: 2px solid #FF2717 !important;
56
+ border-left: 6px solid #FEA12D !important;
57
+ border-radius: 8px !important;
58
+ padding: 16px 20px !important;
59
+ margin-bottom: 12px !important;
60
+ }
61
+ #disclaimer-banner p {
62
+ margin: 2px 0 !important;
63
+ color: #E4E4E7 !important;
64
+ }
65
  """
66
 
67
  with gr.Blocks(theme=gr.themes.Base(), title="Financial Agent", css=custom_css) as demo:
68
+
69
  gr.Markdown(
70
  """
71
  # Financial Agent
72
  Uses **LLaMA 3.3 70B** via NVIDIA NIM (OpenAI-compatible API).
73
  Ask for stock prices, company profiles, and more! The agent can use tools to fetch real-time data and provide accurate responses.
74
+ """,
75
+ elem_id="app-title",
76
  )
77
 
78
  with gr.Row():
 
121
  | Build a low-risk portfolio | "Create a minimum variance portfolio with Microsoft, Google, and Amazon" |
122
  | Maximize return for the risk taken | "Give me the best risk-return portfolio using Apple, Nvidia, and Meta" |
123
  | Reduce downside risk compared to the S&P500 | "Build a portfolio that minimizes losses relative to the S&P500 using these 5 stocks" |
124
+ | Find economic data from the US (FRED) | "What was the unemployment rate in December 2024?" |
125
  | Check Mexican CETES rates | "What's the 28-day CETES rate today?" |
126
  | Know monthly inflation in Mexico | "What was Mexico's monthly inflation last month?" |
127
  | Know annual inflation in Mexico | "What's the current annual inflation rate in Mexico?" |
 
135
  """
136
  )
137
 
138
+ gr.Markdown(
139
+ """
140
+ ⚠️ **EDUCATIONAL PURPOSES ONLY — NOT FINANCIAL ADVICE**
141
+
142
+ This agent is a student project built for a Deep Learning course. It is **not** a licensed financial advisor,
143
+ broker, or investment service. All outputs — including stock prices, portfolio suggestions, economic indicators,
144
+ and any other financial data — are provided **strictly for educational and demonstration purposes**.
145
+
146
+ **Do not use this tool to make real investment, trading, or financial decisions.**
147
+ The information may be inaccurate, delayed, or incomplete. Always consult a qualified financial professional
148
+ before making any investment decision. The authors assume no liability for any actions taken based on
149
+ the outputs of this agent.
150
+ """,
151
+ elem_id="disclaimer-banner",
152
+ )
153
+
154
  return demo
155
 
156