Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -239,31 +239,30 @@ This dashboard allows you to compare the performance of three sentiment models i
|
|
| 239 |
|
| 240 |
"""
|
| 241 |
|
| 242 |
-
|
|
|
|
| 243 |
with gr.Blocks() as demo:
|
| 244 |
gr.Markdown("# Portfolio Strategy Dashboard")
|
| 245 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
with gr.Row():
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
choices=["Day", "Month", "Year"],
|
| 262 |
-
value="Day",
|
| 263 |
-
label="Aggregation Level"
|
| 264 |
-
)
|
| 265 |
-
|
| 266 |
-
# Output sotto le colonne
|
| 267 |
gr.Dataframe(label="Data Preview", type="pandas")
|
| 268 |
gr.Plot(label="Strategies")
|
| 269 |
gr.Plot(label="Prices")
|
|
|
|
| 239 |
|
| 240 |
"""
|
| 241 |
|
| 242 |
+
|
| 243 |
+
# --- INTERFACCIA GRADIO CON DROPDOWN SOTTO IL TESTO ---
|
| 244 |
with gr.Blocks() as demo:
|
| 245 |
gr.Markdown("# Portfolio Strategy Dashboard")
|
| 246 |
|
| 247 |
+
# Markdown in alto
|
| 248 |
+
gr.Markdown(description_text)
|
| 249 |
+
|
| 250 |
+
# Input sotto il Markdown
|
| 251 |
with gr.Row():
|
| 252 |
+
dropdown_companies = gr.Dropdown(
|
| 253 |
+
choices=companies,
|
| 254 |
+
value=["Microsoft", "Tesla, Inc."],
|
| 255 |
+
multiselect=True,
|
| 256 |
+
label="Select Companies"
|
| 257 |
+
)
|
| 258 |
+
|
| 259 |
+
radio_aggregation = gr.Radio(
|
| 260 |
+
choices=["Day", "Month", "Year"],
|
| 261 |
+
value="Day",
|
| 262 |
+
label="Aggregation Level"
|
| 263 |
+
)
|
| 264 |
+
|
| 265 |
+
# Output sotto gli input
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 266 |
gr.Dataframe(label="Data Preview", type="pandas")
|
| 267 |
gr.Plot(label="Strategies")
|
| 268 |
gr.Plot(label="Prices")
|