Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -127,19 +127,11 @@ def stock_research(symbol, assumed_eps=5.0, growth_rate=0.1, book_value=50000000
|
|
127 |
return summary, info_table, ratios_table, fig
|
128 |
|
129 |
with gr.Blocks() as iface:
|
130 |
-
gr.Markdown("""
|
131 |
-
# 📚 Why These Inputs Matter:
|
132 |
-
- **Assumed EPS**: Needed to calculate the Price/Earnings (P/E) Ratio.
|
133 |
-
- **Assumed Growth Rate**: Needed to calculate the Price/Earnings/Growth (PEG) Ratio.
|
134 |
-
- **Assumed Book Value**: Needed to calculate the Price/Book (P/B) Ratio.
|
135 |
-
- **Dividend Info**: Automatically fetched.
|
136 |
-
""")
|
137 |
-
|
138 |
with gr.Row():
|
139 |
-
symbol = gr.Textbox(label="Stock Symbol (e.g., AAPL)")
|
140 |
-
eps = gr.Number(label="Assumed EPS", value=5.0)
|
141 |
-
growth = gr.Number(label="Assumed Growth Rate", value=0.1)
|
142 |
-
book = gr.Number(label="Assumed Book Value", value=500000000)
|
143 |
|
144 |
with gr.Tabs():
|
145 |
with gr.Tab("AI Research Summary"):
|
@@ -160,4 +152,4 @@ with gr.Blocks() as iface:
|
|
160 |
)
|
161 |
|
162 |
if __name__ == "__main__":
|
163 |
-
iface.launch()
|
|
|
127 |
return summary, info_table, ratios_table, fig
|
128 |
|
129 |
with gr.Blocks() as iface:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
with gr.Row():
|
131 |
+
symbol = gr.Textbox(label="Stock Symbol (e.g., AAPL)", info="The ticker symbol of the company you want to analyze.")
|
132 |
+
eps = gr.Number(label="Assumed EPS", value=5.0, info="Earnings Per Share (EPS) is used to calculate the P/E Ratio.")
|
133 |
+
growth = gr.Number(label="Assumed Growth Rate", value=0.1, info="Expected annual growth rate for PEG Ratio.")
|
134 |
+
book = gr.Number(label="Assumed Book Value", value=500000000, info="Company's total net assets for P/B Ratio.")
|
135 |
|
136 |
with gr.Tabs():
|
137 |
with gr.Tab("AI Research Summary"):
|
|
|
152 |
)
|
153 |
|
154 |
if __name__ == "__main__":
|
155 |
+
iface.launch()
|