Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Change style
Browse files
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 |
-
|
190 |
-
df =
|
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=
|
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")
|