Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ with gr.Blocks() as demo:
|
|
| 32 |
amount = gr.Number(value=0)
|
| 33 |
button = gr.Button(value="Submit")
|
| 34 |
plot = gr.Plot(label="Portfolio Composition Chart")
|
| 35 |
-
demo.load(create_portfolio_graph, inputs=[
|
| 36 |
btn.click(create_portfolio_graph, [amount], plot)
|
| 37 |
|
| 38 |
if __name__ == "__main__":
|
|
|
|
| 32 |
amount = gr.Number(value=0)
|
| 33 |
button = gr.Button(value="Submit")
|
| 34 |
plot = gr.Plot(label="Portfolio Composition Chart")
|
| 35 |
+
demo.load(create_portfolio_graph, inputs=[amount, button], outputs=[title, plot])
|
| 36 |
btn.click(create_portfolio_graph, [amount], plot)
|
| 37 |
|
| 38 |
if __name__ == "__main__":
|