Robzy commited on
Commit
4627c46
·
1 Parent(s): b6352ea
.github/workflows/huggingface-sync.yml CHANGED
@@ -9,7 +9,7 @@ jobs:
9
  sync-to-hub:
10
  runs-on: ubuntu-latest
11
  steps:
12
- - uses: actions/checkout@v3
13
  with:
14
  fetch-depth: 0
15
  lfs: true
 
9
  sync-to-hub:
10
  runs-on: ubuntu-latest
11
  steps:
12
+ - uses: actions/checkout@v4
13
  with:
14
  fetch-depth: 0
15
  lfs: true
functions/figure.py CHANGED
@@ -86,6 +86,13 @@ def plot(df, n=10):
86
 
87
  # x range start BEFORE today
88
  k = 4
 
 
 
 
 
 
 
89
 
90
  fig.update_layout(
91
  shapes=shapes, # Add the background rectangles
@@ -108,8 +115,8 @@ def plot(df, n=10):
108
  range=[1, np.log10(500)] # Set y-axis range to be positive
109
  ),
110
  autosize=True,
111
- width=2100,
112
- height=900,
113
  hoverlabel=dict(
114
  font_size=20 # Increase hover label font size
115
  )
 
86
 
87
  # x range start BEFORE today
88
  k = 4
89
+ # Get the screen dimensions
90
+ screen_width = st.get_option("browser.clientWidth")
91
+ screen_height = st.get_option("browser.clientHeight")
92
+
93
+ # Set the width and height to take up nearly the entire screen
94
+ fig_width = screen_width * 0.8
95
+ fig_height = screen_height * 0.65
96
 
97
  fig.update_layout(
98
  shapes=shapes, # Add the background rectangles
 
115
  range=[1, np.log10(500)] # Set y-axis range to be positive
116
  ),
117
  autosize=True,
118
+ width=fig_width,
119
+ height=fig_height,
120
  hoverlabel=dict(
121
  font_size=20 # Increase hover label font size
122
  )