Spaces:
Runtime error
Runtime error
make sure ticker is caps
Browse files- app.py +2 -2
- app.py.bak +1 -1
app.py
CHANGED
@@ -298,12 +298,12 @@ with gr.Blocks() as app:
|
|
298 |
gr.HTML("<h3>https://finviz.com/</h3>")
|
299 |
|
300 |
with gr.Row():
|
301 |
-
EPS_growth_5Y = gr.Text(label="EPS Next 5Y (
|
302 |
EPS_growth_6Y_to_10Y = gr.Text(label="EPS growth for 6th to 10th year (estimated as half of above)")
|
303 |
long_term_growth_rate = gr.Text(label="Long Term Growth Rate (estimated as half of above or 3%, whichever is lower)")
|
304 |
|
305 |
with gr.Row():
|
306 |
-
beta = gr.Text(label="Beta (
|
307 |
discount_rate = gr.Text(label="Discount Rate (estimated from beta)")
|
308 |
shares_outstanding = gr.Text(label="Shares Outstanding")
|
309 |
|
|
|
298 |
gr.HTML("<h3>https://finviz.com/</h3>")
|
299 |
|
300 |
with gr.Row():
|
301 |
+
EPS_growth_5Y = gr.Text(label="EPS Next 5Y (estimated EPS growth for next 5 years)")
|
302 |
EPS_growth_6Y_to_10Y = gr.Text(label="EPS growth for 6th to 10th year (estimated as half of above)")
|
303 |
long_term_growth_rate = gr.Text(label="Long Term Growth Rate (estimated as half of above or 3%, whichever is lower)")
|
304 |
|
305 |
with gr.Row():
|
306 |
+
beta = gr.Text(label="Beta (measures volatility of stock)")
|
307 |
discount_rate = gr.Text(label="Discount Rate (estimated from beta)")
|
308 |
shares_outstanding = gr.Text(label="Shares Outstanding")
|
309 |
|
app.py.bak
CHANGED
@@ -268,7 +268,7 @@ def run_all_steps(ticker):
|
|
268 |
fig_cash_forecast = plot_forecasted_cash_flows(ticker, forecast_cash_flows_df)
|
269 |
|
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) + '%'
|
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 |
|
|
|
268 |
fig_cash_forecast = plot_forecasted_cash_flows(ticker, forecast_cash_flows_df)
|
269 |
|
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 |
|