victormiller commited on
Commit
a148c62
1 Parent(s): ce3069e

Update results.py

Browse files
Files changed (1) hide show
  1. results.py +4 -4
results.py CHANGED
@@ -451,14 +451,14 @@ data = {
451
  }
452
 
453
  # Create figure
454
- fig = go.Figure()
455
 
456
  # Add traces for each bucket
457
  for bucket, bucket_data in data.items():
458
- fig.add_trace(go.Scatter(x=bucket_data["years"], y=bucket_data["perplexities"], mode='lines+markers', name=bucket))
459
 
460
  # Update layout
461
- fig.update_layout(
462
  title="Perplexity Across Different Years for Various Buckets (Global)",
463
  xaxis_title="Year",
464
  yaxis_title="Average Perplexity",
@@ -466,7 +466,7 @@ fig.update_layout(
466
  )
467
 
468
  # Show the figure
469
- llama_graph4 = fig
470
 
471
  ##llama graph 5
472
 
 
451
  }
452
 
453
  # Create figure
454
+ fig_4 = go.Figure()
455
 
456
  # Add traces for each bucket
457
  for bucket, bucket_data in data.items():
458
+ fig_4.add_trace(go.Scatter(x=bucket_data["years"], y=bucket_data["perplexities"], mode='lines+markers', name=bucket))
459
 
460
  # Update layout
461
+ fig_4.update_layout(
462
  title="Perplexity Across Different Years for Various Buckets (Global)",
463
  xaxis_title="Year",
464
  yaxis_title="Average Perplexity",
 
466
  )
467
 
468
  # Show the figure
469
+ llama_graph4 = fig_4
470
 
471
  ##llama graph 5
472