SelmaNajih001 commited on
Commit
4b237f5
·
verified ·
1 Parent(s): 223743e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -21
app.py CHANGED
@@ -239,31 +239,30 @@ This dashboard allows you to compare the performance of three sentiment models i
239
 
240
  """
241
 
242
- # --- INTERFACCIA GRADIO A COLONNE ---
 
243
  with gr.Blocks() as demo:
244
  gr.Markdown("# Portfolio Strategy Dashboard")
245
 
 
 
 
 
246
  with gr.Row():
247
- # Colonna a sinistra: Markdown
248
- with gr.Column(scale=1):
249
- gr.Markdown(description_text)
250
-
251
- # Colonna a destra: Input
252
- with gr.Column(scale=2):
253
- dropdown_companies = gr.Dropdown(
254
- choices=companies,
255
- value=["Microsoft", "Tesla, Inc."],
256
- multiselect=True,
257
- label="Select Companies"
258
- )
259
-
260
- radio_aggregation = gr.Radio(
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")