Spaces:
Runtime error
Runtime error
bug fix
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def update_plot(df, preds, axs, fig):
|
|
68 |
axs[0, 1].plot(df.loc[df['Group'] == '7', 'Date'], df.loc[df['Group'] == '4', 'pred'], color = 'red')
|
69 |
axs[1, 0].plot(df.loc[df['Group'] == '1', 'Date'], df.loc[df['Group'] == '4', 'pred'], color = 'red')
|
70 |
axs[1, 1].plot(df.loc[df['Group'] == '6', 'Date'], df.loc[df['Group'] == '4', 'pred'], color = 'red')
|
71 |
-
return
|
72 |
|
73 |
@st.cache_resource
|
74 |
def generate_plot(df):
|
|
|
68 |
axs[0, 1].plot(df.loc[df['Group'] == '7', 'Date'], df.loc[df['Group'] == '4', 'pred'], color = 'red')
|
69 |
axs[1, 0].plot(df.loc[df['Group'] == '1', 'Date'], df.loc[df['Group'] == '4', 'pred'], color = 'red')
|
70 |
axs[1, 1].plot(df.loc[df['Group'] == '6', 'Date'], df.loc[df['Group'] == '4', 'pred'], color = 'red')
|
71 |
+
return fig, axs
|
72 |
|
73 |
@st.cache_resource
|
74 |
def generate_plot(df):
|