Spaces:
Runtime error
Runtime error
edited script
Browse files- app.py +1 -1
- app.py.bak +2 -1
app.py
CHANGED
@@ -270,7 +270,7 @@ def run_all_steps(ticker):
|
|
270 |
return q_cash_flow_statement.reset_index(), final_cash_flow_statement.reset_index(), q_balance_statement.reset_index(), fig_cash_flow, \
|
271 |
str(EPS_growth_5Y) + '%', str(EPS_growth_6Y_to_10Y) + '%', str(long_term_growth_rate) + '%', \
|
272 |
beta, shares_outstanding, current_price, \
|
273 |
-
str(discount_rate) + '%', forecast_cash_flows_df.reset_index(), terminal_value, intrinsic_value, fig_cash_forecast, margin_of_safety
|
274 |
|
275 |
|
276 |
# Gradio App and UI
|
|
|
270 |
return q_cash_flow_statement.reset_index(), final_cash_flow_statement.reset_index(), q_balance_statement.reset_index(), fig_cash_flow, \
|
271 |
str(EPS_growth_5Y) + '%', str(EPS_growth_6Y_to_10Y) + '%', str(long_term_growth_rate) + '%', \
|
272 |
beta, shares_outstanding, current_price, \
|
273 |
+
str(discount_rate) + '%', forecast_cash_flows_df.reset_index(), terminal_value, intrinsic_value, fig_cash_forecast, str(margin_of_safety) + '%'
|
274 |
|
275 |
|
276 |
# Gradio App and UI
|
app.py.bak
CHANGED
@@ -139,7 +139,8 @@ def parse_finviz_dict(finviz_dict):
|
|
139 |
EPS_growth_5Y = finviz_dict['EPS next Y']
|
140 |
EPS_growth_6Y_to_10Y = EPS_growth_5Y/2 # Half the previous growth rate, conservative estimate
|
141 |
# Long term = previous growth rate or around long term inflation rate, whichever is lower to be conservative estimate
|
142 |
-
long_term_growth_rate = np.minimum(EPS_growth_6Y_to_10Y, 3)
|
|
|
143 |
beta = finviz_dict['Beta']
|
144 |
current_price = finviz_dict['Price']
|
145 |
|
|
|
139 |
EPS_growth_5Y = finviz_dict['EPS next Y']
|
140 |
EPS_growth_6Y_to_10Y = EPS_growth_5Y/2 # Half the previous growth rate, conservative estimate
|
141 |
# Long term = previous growth rate or around long term inflation rate, whichever is lower to be conservative estimate
|
142 |
+
long_term_growth_rate = np.minimum(EPS_growth_6Y_to_10Y, 3)
|
143 |
+
shares_outstanding = finviz_dict['Shs Outstand']
|
144 |
beta = finviz_dict['Beta']
|
145 |
current_price = finviz_dict['Price']
|
146 |
|