Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -89,6 +89,8 @@ def plot_target_distributions():
|
|
89 |
sns.countplot(x=sample_df.prediction, stat='proportion', ax=axes[1])
|
90 |
axes[1].set_title("Distribution of predicted targets from the deployed model")
|
91 |
axes[1].set_xlabel('')
|
|
|
|
|
92 |
|
93 |
return figure
|
94 |
|
@@ -163,7 +165,7 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
|
|
163 |
|
164 |
with gr.Row():
|
165 |
with gr.Column():
|
166 |
-
gr.Plot(plot_target_distributions, every=
|
167 |
|
168 |
gr.Markdown("## Data drift detection (every 5 seconds)")
|
169 |
|
|
|
89 |
sns.countplot(x=sample_df.prediction, stat='proportion', ax=axes[1])
|
90 |
axes[1].set_title("Distribution of predicted targets from the deployed model")
|
91 |
axes[1].set_xlabel('')
|
92 |
+
|
93 |
+
plt.close()
|
94 |
|
95 |
return figure
|
96 |
|
|
|
165 |
|
166 |
with gr.Row():
|
167 |
with gr.Column():
|
168 |
+
gr.Plot(plot_target_distributions, every=86400, label="Target Data Distributions")
|
169 |
|
170 |
gr.Markdown("## Data drift detection (every 5 seconds)")
|
171 |
|