pgurazada1 commited on
Commit
fdd11f5
1 Parent(s): a3fab22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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=60, label="Target Data Distributions")
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