pgurazada1 commited on
Commit
4088f05
·
verified ·
1 Parent(s): fc05832

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -66,9 +66,9 @@ def check_model_drift(p_pos_label_sample_logs):
66
  psi_value = psi(live_proportions, training_proportions)
67
 
68
  if psi_value > 0.1:
69
- return f"Data Drift Detected! Check Logs!(proportion of positive labels in training data = {training_proportions[1]})"
70
  else:
71
- return f"No Data Drift (proportion of positive labels in training data = {training_proportions[1]})"
72
 
73
 
74
  def check_data_drift(feature):
@@ -158,15 +158,4 @@ with gr.Blocks() as demo:
158
  api_name="check-data-drift"
159
  )
160
 
161
- #demo = gr.Interface(
162
- # fn=check_model_drift,
163
- # inputs=[model_drift_input],
164
- # outputs=drift_check_output,
165
- # title="Check for Model Drift",
166
- # description="This app allows you to verify if a particular live data sample shows evidence of model drift",
167
- # examples=[[0.0008],
168
- # [0.035]],
169
- # concurrency_limit=32
170
- #)
171
-
172
  demo.queue().launch()
 
66
  psi_value = psi(live_proportions, training_proportions)
67
 
68
  if psi_value > 0.1:
69
+ return f"Model Drift Detected! Check Logs!(proportion of positive labels in training data = {training_proportions[1]})"
70
  else:
71
+ return f"No Model Drift (proportion of positive labels in training data = {training_proportions[1]})"
72
 
73
 
74
  def check_data_drift(feature):
 
158
  api_name="check-data-drift"
159
  )
160
 
 
 
 
 
 
 
 
 
 
 
 
161
  demo.queue().launch()