Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -248,7 +248,7 @@ with gr.Blocks() as demo:
|
|
| 248 |
gr.Markdown("# Portfolio Strategy Dashboard")
|
| 249 |
gr.Markdown(description_text)
|
| 250 |
|
| 251 |
-
# Input
|
| 252 |
with gr.Row():
|
| 253 |
dropdown_companies = gr.Dropdown(
|
| 254 |
choices=companies,
|
|
@@ -268,9 +268,9 @@ with gr.Blocks() as demo:
|
|
| 268 |
strategies_plot = gr.Plot(label="Strategies")
|
| 269 |
prices_plot = gr.Plot(label="Prices")
|
| 270 |
|
| 271 |
-
# Collega bottone agli output
|
| 272 |
submit_btn.click(
|
| 273 |
-
fn=show_strategy
|
| 274 |
inputs=[dropdown_companies, radio_aggregation],
|
| 275 |
outputs=[data_table, strategies_plot, prices_plot]
|
| 276 |
)
|
|
|
|
| 248 |
gr.Markdown("# Portfolio Strategy Dashboard")
|
| 249 |
gr.Markdown(description_text)
|
| 250 |
|
| 251 |
+
# Input centrati
|
| 252 |
with gr.Row():
|
| 253 |
dropdown_companies = gr.Dropdown(
|
| 254 |
choices=companies,
|
|
|
|
| 268 |
strategies_plot = gr.Plot(label="Strategies")
|
| 269 |
prices_plot = gr.Plot(label="Prices")
|
| 270 |
|
| 271 |
+
# Collega bottone agli output usando la funzione reale
|
| 272 |
submit_btn.click(
|
| 273 |
+
fn=show_company_data, # <--- qui prima avevi show_strategy
|
| 274 |
inputs=[dropdown_companies, radio_aggregation],
|
| 275 |
outputs=[data_table, strategies_plot, prices_plot]
|
| 276 |
)
|