Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -92,21 +92,22 @@ def stock_research(symbol, eps=5.0, growth=0.1, book=500000000):
|
|
92 |
recommendation = "Sell"
|
93 |
|
94 |
report = (
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
|
|
110 |
)
|
111 |
|
112 |
summary_prompt = f"Summarize this financial report clearly and briefly:\n\n{report}"
|
|
|
92 |
recommendation = "Sell"
|
93 |
|
94 |
report = (
|
95 |
+
f"Company Overview:\n"
|
96 |
+
f"Name: {info.get('Name', 'N/A')}\n"
|
97 |
+
f"Industry: {info.get('Industry', 'N/A')}\n"
|
98 |
+
f"Sector: {info.get('Sector', 'N/A')}\n"
|
99 |
+
f"Market Cap: ${info.get('Market Cap', 0):,.2f}\n\n"
|
100 |
+
f"Financial Metrics:\n"
|
101 |
+
f"P/E Ratio: {ratios.get('P/E Ratio', 'N/A')}\n"
|
102 |
+
f"P/S Ratio: {ratios.get('P/S Ratio', 'N/A')}\n"
|
103 |
+
f"P/B Ratio: {ratios.get('P/B Ratio', 'N/A')}\n"
|
104 |
+
f"PEG Ratio: {ratios.get('PEG Ratio', 'N/A')}\n"
|
105 |
+
f"Dividend Yield: {ratios.get('Dividend Yield', 'N/A')}%\n"
|
106 |
+
f"Debt/Equity Ratio: {ratios.get('Debt/Equity Ratio', 'N/A')}\n"
|
107 |
+
f"Return on Equity: {ratios.get('Return on Equity (%)', 'N/A')}%\n"
|
108 |
+
f"Free Cash Flow: ${ratios.get('Free Cash Flow ($)', 0):,.2f}\n"
|
109 |
+
f"Beta (Volatility): {ratios.get('Beta (Volatility)', 'N/A')}\n"
|
110 |
+
|
111 |
)
|
112 |
|
113 |
summary_prompt = f"Summarize this financial report clearly and briefly:\n\n{report}"
|