Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,9 +92,9 @@ class FinancialAnalyzer:
|
|
92 |
return {}
|
93 |
|
94 |
def extract_metrics(self, income_data, balance_data):
|
95 |
-
|
96 |
try:
|
97 |
-
|
98 |
metrics = {
|
99 |
"Revenue": {
|
100 |
"2025": self.get_nested_value(income_data, "Revenue", "Total Net Revenue", "2025"),
|
|
|
92 |
return {}
|
93 |
|
94 |
def extract_metrics(self, income_data, balance_data):
|
95 |
+
"""Extract and calculate key financial metrics"""
|
96 |
try:
|
97 |
+
# Get current and previous year values for growth calculations
|
98 |
metrics = {
|
99 |
"Revenue": {
|
100 |
"2025": self.get_nested_value(income_data, "Revenue", "Total Net Revenue", "2025"),
|