RohitKeswani commited on
Commit
415f5c3
ยท
1 Parent(s): d33e284
Files changed (1) hide show
  1. app.py +22 -2
app.py CHANGED
@@ -73,7 +73,19 @@ def run_financial_statements(
73
 
74
  # --- Gradio UI ---
75
  with gr.Blocks(theme=gr.themes.Soft(), css=".gr-button { font-size: 16px }") as demo:
76
- gr.Markdown("# ๐Ÿ“Š Financial Assistant\nUse this tool to explore company financial statements.")
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
  with gr.Row():
79
  with gr.Column(scale=1):
@@ -87,7 +99,15 @@ with gr.Blocks(theme=gr.themes.Soft(), css=".gr-button { font-size: 16px }") as
87
  )
88
  period = gr.Radio(["annual", "quarterly", "ttm"], label="Period", value="annual")
89
  limit = gr.Slider(1, 10, value=4, step=1, label="Limit")
90
- api_key = gr.Textbox(label="API Key", type="password", placeholder="Paste your API key")
 
 
 
 
 
 
 
 
91
 
92
  submit = gr.Button("๐Ÿ“ˆ Get Financials", variant="primary")
93
 
 
73
 
74
  # --- Gradio UI ---
75
  with gr.Blocks(theme=gr.themes.Soft(), css=".gr-button { font-size: 16px }") as demo:
76
+ gr.Markdown(
77
+ """
78
+ # ๐Ÿ“Š Financial Insights Assistant
79
+
80
+ Welcome to the **Financial News & Statements Explorer**!
81
+
82
+ ๐Ÿ” Search for company financials such as income statements, balance sheets, or cash flow data
83
+ using official ticker symbols (e.g. `AAPL`, `MSFT`, `TSLA`).
84
+ ๐Ÿ‘‰ Youโ€™ll need a free API key from [financialdatasets.ai](https://financialdatasets.ai) to use this tool.
85
+
86
+ ---
87
+ """
88
+ )
89
 
90
  with gr.Row():
91
  with gr.Column(scale=1):
 
99
  )
100
  period = gr.Radio(["annual", "quarterly", "ttm"], label="Period", value="annual")
101
  limit = gr.Slider(1, 10, value=4, step=1, label="Limit")
102
+ api_key = gr.Textbox(
103
+ label="FinancialDatasets API Key",
104
+ placeholder="Enter your API key (Get one at financialdatasets.ai)",
105
+ type="password"
106
+ )
107
+ gr.Markdown(
108
+ "๐Ÿ”‘ Donโ€™t have an API key? [Get one here](https://financialdatasets.ai)"
109
+ )
110
+
111
 
112
  submit = gr.Button("๐Ÿ“ˆ Get Financials", variant="primary")
113