SelmaNajih001 commited on
Commit
e6f35c1
·
verified ·
1 Parent(s): 41da909

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,7 +79,7 @@ for i, row in df_to_add.iterrows():
79
 
80
  # Regression
81
  try:
82
- if company == "Tesla, Inc.":
83
  val = price_pipeline_tesla(row['Title'])[0]['score']
84
  df_to_add.at[i,'Predicted'] = max(val, 1.0)
85
  elif company == "Microsoft":
@@ -236,7 +236,7 @@ This dashboard allows you to compare the performance of three sentiment models i
236
  - For the regression model, thresholds are +1 and -1.
237
  """
238
 
239
- companies = ["Microsoft", "Tesla, Inc."]
240
 
241
  with gr.Blocks() as demo:
242
  gr.Markdown("# Portfolio Strategy Dashboard")
@@ -245,7 +245,7 @@ with gr.Blocks() as demo:
245
  with gr.Row():
246
  dropdown_companies = gr.Dropdown(
247
  choices=companies,
248
- value=["Microsoft", "Tesla, Inc."],
249
  multiselect=True,
250
  label="Select Companies"
251
  )
 
79
 
80
  # Regression
81
  try:
82
+ if company == "Tesla":
83
  val = price_pipeline_tesla(row['Title'])[0]['score']
84
  df_to_add.at[i,'Predicted'] = max(val, 1.0)
85
  elif company == "Microsoft":
 
236
  - For the regression model, thresholds are +1 and -1.
237
  """
238
 
239
+ companies = ["Microsoft", "Tesla"]
240
 
241
  with gr.Blocks() as demo:
242
  gr.Markdown("# Portfolio Strategy Dashboard")
 
245
  with gr.Row():
246
  dropdown_companies = gr.Dropdown(
247
  choices=companies,
248
+ value=["Microsoft", "Tesla"],
249
  multiselect=True,
250
  label="Select Companies"
251
  )