eaglelandsonce
commited on
Commit
•
f60225b
1
Parent(s):
f850c97
Update app.py
Browse files
app.py
CHANGED
@@ -668,19 +668,7 @@ with gr.Blocks() as demo:
|
|
668 |
annual_volatility = gr.Text(label="Annual Volatility")
|
669 |
sharpe_ratio = gr.Text(label="Sharpe Ratio")
|
670 |
|
671 |
-
with gr.Row():
|
672 |
-
fig_cum_returns_optimized = gr.Plot(label="Cumulative Returns of Optimized Portfolio (Starting Price of $100)")
|
673 |
-
weights_df = gr.DataFrame(label="Optimized Weights of Each Ticker")
|
674 |
-
|
675 |
|
676 |
-
with gr.Row():
|
677 |
-
fig_efficient_frontier = gr.Plot(label="Efficient Frontier")
|
678 |
-
fig_corr = gr.Plot(label="Correlation between Stocks")
|
679 |
-
|
680 |
-
with gr.Row():
|
681 |
-
fig_indiv_prices = gr.Plot(label="Price of Individual Stocks")
|
682 |
-
fig_cum_returns = gr.Plot(label="Cumulative Returns of Individual Stocks Starting with $100")
|
683 |
-
|
684 |
|
685 |
|
686 |
'''
|
@@ -715,6 +703,21 @@ with gr.Blocks() as demo:
|
|
715 |
outputs=gr.Textbox(label="Portfolio Analysis")
|
716 |
)
|
717 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
718 |
# For future upgrade
|
719 |
|
720 |
'''
|
|
|
668 |
annual_volatility = gr.Text(label="Annual Volatility")
|
669 |
sharpe_ratio = gr.Text(label="Sharpe Ratio")
|
670 |
|
|
|
|
|
|
|
|
|
671 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
672 |
|
673 |
|
674 |
'''
|
|
|
703 |
outputs=gr.Textbox(label="Portfolio Analysis")
|
704 |
)
|
705 |
|
706 |
+
|
707 |
+
with gr.Row():
|
708 |
+
fig_cum_returns_optimized = gr.Plot(label="Cumulative Returns of Optimized Portfolio (Starting Price of $100)")
|
709 |
+
weights_df = gr.DataFrame(label="Optimized Weights of Each Ticker")
|
710 |
+
|
711 |
+
|
712 |
+
with gr.Row():
|
713 |
+
fig_efficient_frontier = gr.Plot(label="Efficient Frontier")
|
714 |
+
fig_corr = gr.Plot(label="Correlation between Stocks")
|
715 |
+
|
716 |
+
with gr.Row():
|
717 |
+
fig_indiv_prices = gr.Plot(label="Price of Individual Stocks")
|
718 |
+
fig_cum_returns = gr.Plot(label="Cumulative Returns of Individual Stocks Starting with $100")
|
719 |
+
|
720 |
+
|
721 |
# For future upgrade
|
722 |
|
723 |
'''
|