eaglelandsonce
commited on
Commit
•
40f2353
1
Parent(s):
16e2c94
Update app.py
Browse files
app.py
CHANGED
@@ -668,8 +668,20 @@ with gr.Blocks() as demo:
|
|
668 |
annual_volatility = gr.Text(label="Annual Volatility")
|
669 |
sharpe_ratio = gr.Text(label="Sharpe Ratio")
|
670 |
|
671 |
-
|
672 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
673 |
|
674 |
'''
|
675 |
btn.click(fn=output_results, inputs=[start_date, end_date, ticker_string],
|
|
|
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 |
+
#Buttom Graphs
|
676 |
+
|
677 |
+
with gr.Row():
|
678 |
+
fig_efficient_frontier = gr.Plot(label="Efficient Frontier")
|
679 |
+
fig_corr = gr.Plot(label="Correlation between Stocks")
|
680 |
+
|
681 |
+
with gr.Row():
|
682 |
+
fig_indiv_prices = gr.Plot(label="Price of Individual Stocks")
|
683 |
+
fig_cum_returns = gr.Plot(label="Cumulative Returns of Individual Stocks Starting with $100")
|
684 |
+
|
685 |
|
686 |
'''
|
687 |
btn.click(fn=output_results, inputs=[start_date, end_date, ticker_string],
|