Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -345,12 +345,12 @@ with gr.Blocks() as app:
|
|
345 |
with gr.Row():
|
346 |
terminal_value = gr.Text(label="Terminal Value (after 10th year)")
|
347 |
|
348 |
-
|
349 |
outputs=[q_cash_flow_statement, final_cash_flow_statement, q_balance_statement, fig_cash_flow, \
|
350 |
EPS_growth_5Y, EPS_growth_6Y_to_10Y, long_term_growth_rate, beta, shares_outstanding, current_price, \
|
351 |
discount_rate, forecast_cash_flows_df, terminal_value, intrinsic_value, fig_cash_forecast, margin_of_safety])
|
352 |
|
353 |
-
|
354 |
outputs=[q_cash_flow_statement, final_cash_flow_statement, q_balance_statement, fig_cash_flow, \
|
355 |
EPS_growth_5Y, EPS_growth_6Y_to_10Y, long_term_growth_rate, beta, shares_outstanding, current_price, \
|
356 |
discount_rate, forecast_cash_flows_df, terminal_value, intrinsic_value, fig_cash_forecast, margin_of_safety])
|
|
|
345 |
with gr.Row():
|
346 |
terminal_value = gr.Text(label="Terminal Value (after 10th year)")
|
347 |
|
348 |
+
btn.click(fn=run_all_steps, inputs=[ticker],
|
349 |
outputs=[q_cash_flow_statement, final_cash_flow_statement, q_balance_statement, fig_cash_flow, \
|
350 |
EPS_growth_5Y, EPS_growth_6Y_to_10Y, long_term_growth_rate, beta, shares_outstanding, current_price, \
|
351 |
discount_rate, forecast_cash_flows_df, terminal_value, intrinsic_value, fig_cash_forecast, margin_of_safety])
|
352 |
|
353 |
+
ticker.submit(fn=run_all_steps, inputs=[ticker],
|
354 |
outputs=[q_cash_flow_statement, final_cash_flow_statement, q_balance_statement, fig_cash_flow, \
|
355 |
EPS_growth_5Y, EPS_growth_6Y_to_10Y, long_term_growth_rate, beta, shares_outstanding, current_price, \
|
356 |
discount_rate, forecast_cash_flows_df, terminal_value, intrinsic_value, fig_cash_forecast, margin_of_safety])
|