Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,9 +19,10 @@ def create_portfolio_graph():
|
|
| 19 |
return chart
|
| 20 |
|
| 21 |
with gr.Blocks() as demo:
|
|
|
|
| 22 |
plot = gr.Plot(label="Portfolio Composition Chart")
|
| 23 |
plot.change(create_portfolio_graph, inputs=[], outputs=[plot])
|
| 24 |
-
demo.load(create_portfolio_graph, inputs=[], outputs=[plot])
|
| 25 |
|
| 26 |
if __name__ == "__main__":
|
| 27 |
demo.launch()
|
|
@@ -40,3 +41,4 @@ if __name__ == "__main__":
|
|
| 40 |
|
| 41 |
|
| 42 |
|
|
|
|
|
|
| 19 |
return chart
|
| 20 |
|
| 21 |
with gr.Blocks() as demo:
|
| 22 |
+
title = gr.Text("This is the Current Recommended Portfolio Allocation", element="h1", style={"textAlign": "center"})
|
| 23 |
plot = gr.Plot(label="Portfolio Composition Chart")
|
| 24 |
plot.change(create_portfolio_graph, inputs=[], outputs=[plot])
|
| 25 |
+
demo.load(create_portfolio_graph, inputs=[], outputs=[title, plot])
|
| 26 |
|
| 27 |
if __name__ == "__main__":
|
| 28 |
demo.launch()
|
|
|
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
+
|