bohmian commited on
Commit
c3a703b
·
1 Parent(s): 57ac80c

make sure ticker is caps

Browse files
Files changed (2) hide show
  1. app.py +2 -0
  2. app.py.bak +1 -1
app.py CHANGED
@@ -247,6 +247,8 @@ def plot_forecasted_cash_flows(ticker, forecast_cash_flows_df):
247
 
248
  # chain all the steps from the functions above together
249
  def run_all_steps(ticker):
 
 
250
  q_cash_flow_statement, cash_flow_statement, final_cash_flow_statement, q_balance_statement, latest_year = get_financial_statements(ticker)
251
 
252
  fig_cash_flow = plot_cash_flow(ticker, cash_flow_statement)
 
247
 
248
  # chain all the steps from the functions above together
249
  def run_all_steps(ticker):
250
+ ticker = ticker.upper() # make sure ticker is caps
251
+
252
  q_cash_flow_statement, cash_flow_statement, final_cash_flow_statement, q_balance_statement, latest_year = get_financial_statements(ticker)
253
 
254
  fig_cash_flow = plot_cash_flow(ticker, cash_flow_statement)
app.py.bak CHANGED
@@ -285,7 +285,7 @@ with gr.Blocks() as app:
285
  gr.HTML("<h2>Calculated Intrinsic Value</h2>")
286
 
287
  with gr.Row():
288
- intrinsic_value = gr.Text(label="Intrinsic Value (if this value is negative, it means current cash flow may be negative and this model cannot work, scroll down to check.")
289
  current_price = gr.Text(label="Actual Stock Price")
290
  margin_of_safety = gr.Text(label="Margin of Safety")
291
 
 
285
  gr.HTML("<h2>Calculated Intrinsic Value</h2>")
286
 
287
  with gr.Row():
288
+ intrinsic_value = gr.Text(label="Intrinsic Value (if this value is negative, it means current cash flow may be negative and this model WOULD NOT WORK, scroll down to check)")
289
  current_price = gr.Text(label="Actual Stock Price")
290
  margin_of_safety = gr.Text(label="Margin of Safety")
291