Commit ยท
415f5c3
1
Parent(s): d33e284
updating
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|