bohmian commited on
Commit
7327eda
1 Parent(s): 13d8d7a

corrected spelling

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -103,7 +103,8 @@ with gr.Blocks() as app:
103
  btn = gr.Button("View Optimized Portfolio")
104
 
105
  with gr.Row():
106
- gr.Markdown("Optimzied Portfolio Metrics")
 
107
  with gr.Row():
108
  expected_annual_return = gr.Text(label="Expected Annual Return")
109
  annual_volatility = gr.Text(label="Annual Volatility")
@@ -117,12 +118,10 @@ with gr.Blocks() as app:
117
  fig_efficient_frontier = gr.Plot(label="Efficient Frontier")
118
  fig_corr = gr.Plot(label="Correlation between Stocks")
119
 
120
-
121
  with gr.Row():
122
  fig_indiv_prices = gr.Plot(label="Price of Individual Stocks")
123
  fig_cum_returns = gr.Plot(label="Cumulative Returns of Individual Stocks Starting with $100")
124
 
125
- #demo.load(plot_indiv_stock_prices, inputs=[start_date, end_date, tickers_string], outputs=fig_indiv_price, examples=["My name is Andrew, I'm building DeeplearningAI and I live in California", "My name is Poli, I live in Vienna and work at HuggingFace"])
126
  btn.click(fn=output_results, inputs=[start_date, end_date, tickers_string],
127
  outputs=[fig_cum_returns_optimized, weights_df, fig_efficient_frontier, fig_corr, \
128
  expected_annual_return, annual_volatility, sharpe_ratio, fig_indiv_prices, fig_cum_returns])
 
103
  btn = gr.Button("View Optimized Portfolio")
104
 
105
  with gr.Row():
106
+ gr.Markdown("Optimizied Portfolio Metrics")
107
+
108
  with gr.Row():
109
  expected_annual_return = gr.Text(label="Expected Annual Return")
110
  annual_volatility = gr.Text(label="Annual Volatility")
 
118
  fig_efficient_frontier = gr.Plot(label="Efficient Frontier")
119
  fig_corr = gr.Plot(label="Correlation between Stocks")
120
 
 
121
  with gr.Row():
122
  fig_indiv_prices = gr.Plot(label="Price of Individual Stocks")
123
  fig_cum_returns = gr.Plot(label="Cumulative Returns of Individual Stocks Starting with $100")
124
 
 
125
  btn.click(fn=output_results, inputs=[start_date, end_date, tickers_string],
126
  outputs=[fig_cum_returns_optimized, weights_df, fig_efficient_frontier, fig_corr, \
127
  expected_annual_return, annual_volatility, sharpe_ratio, fig_indiv_prices, fig_cum_returns])