Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Import
Browse files- app.py +2 -1
- requirements.txt +2 -1
- utils.py +1 -0
app.py
CHANGED
@@ -232,6 +232,7 @@ def make_figure(df):
|
|
232 |
best_models.append(row)
|
233 |
|
234 |
# Extend the line to the current date
|
|
|
235 |
if x_values[-1] < current_date:
|
236 |
x_values.append(current_date)
|
237 |
y_values.append(current_best)
|
@@ -281,7 +282,7 @@ def make_figure(df):
|
|
281 |
fig.update_xaxes(
|
282 |
tickformat="%m-%Y",
|
283 |
)
|
284 |
-
|
285 |
return fig, df
|
286 |
|
287 |
def filter_df():
|
|
|
232 |
best_models.append(row)
|
233 |
|
234 |
# Extend the line to the current date
|
235 |
+
current_date = pd.Timestamp.now()
|
236 |
if x_values[-1] < current_date:
|
237 |
x_values.append(current_date)
|
238 |
y_values.append(current_best)
|
|
|
282 |
fig.update_xaxes(
|
283 |
tickformat="%m-%Y",
|
284 |
)
|
285 |
+
print(fig)
|
286 |
return fig, df
|
287 |
|
288 |
def filter_df():
|
requirements.txt
CHANGED
@@ -4,4 +4,5 @@ numpy
|
|
4 |
plotly
|
5 |
gradio
|
6 |
statsmodels
|
7 |
-
apscheduler
|
|
|
|
4 |
plotly
|
5 |
gradio
|
6 |
statsmodels
|
7 |
+
apscheduler
|
8 |
+
scipy
|
utils.py
CHANGED
@@ -2,6 +2,7 @@ import json
|
|
2 |
from datetime import datetime
|
3 |
|
4 |
from typing import Literal, List
|
|
|
5 |
|
6 |
import pandas as pd
|
7 |
import plotly.express as px
|
|
|
2 |
from datetime import datetime
|
3 |
|
4 |
from typing import Literal, List
|
5 |
+
from scipy.special import expit
|
6 |
|
7 |
import pandas as pd
|
8 |
import plotly.express as px
|