m-ric HF staff commited on
Commit
d789018
1 Parent(s): 26beb63

Change style

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -186,8 +186,8 @@ def make_figure(original_df, start_time_gradio, speak_french):
186
  fig = go.Figure()
187
 
188
  start_date = pd.to_datetime(start_time_gradio, unit='s')
189
- original_df["Release Date"] = pd.to_datetime(original_df["Release Date"])
190
- df = original_df.copy()
191
 
192
  for i, org in enumerate(
193
  df.groupby("Organization")["rating"]
@@ -316,7 +316,7 @@ with gr.Blocks(
316
 
317
  filtered_df = gr.State()
318
  with gr.Row():
319
- top_n_orgs = gr.Slider(minimum=1, maximum=20, value=10, step=1, label="View top N companies")
320
  # minimum_rating = gr.Slider(minimum=800, maximum=1300, value=1000, step=1, label="Restrict to ELO scores above N")
321
  start_time = gr.DateTime(value="2024-01-01 00:00:00", label="Start time")
322
  speak_french = gr.Checkbox(value=False, label="Parler français")
 
186
  fig = go.Figure()
187
 
188
  start_date = pd.to_datetime(start_time_gradio, unit='s')
189
+ df = original_df.copy(deep=True)
190
+ df["Release Date"] = pd.to_datetime(df["Release Date"])
191
 
192
  for i, org in enumerate(
193
  df.groupby("Organization")["rating"]
 
316
 
317
  filtered_df = gr.State()
318
  with gr.Row():
319
+ top_n_orgs = gr.Slider(minimum=1, maximum=15, value=10, step=1, label="View top N companies")
320
  # minimum_rating = gr.Slider(minimum=800, maximum=1300, value=1000, step=1, label="Restrict to ELO scores above N")
321
  start_time = gr.DateTime(value="2024-01-01 00:00:00", label="Start time")
322
  speak_french = gr.Checkbox(value=False, label="Parler français")