Edward J. Schwartz commited on
Commit
f457808
·
1 Parent(s): aa5f7c5

Progress not working?

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -135,8 +135,8 @@ with gr.Blocks() as demo:
135
  # for interpretation.
136
  def interpretation_function(text, progress=gr.Progress(track_tqdm=True)):
137
 
 
138
  explainer = shap.Explainer(model_interp)
139
- progress((0,0), "Interpreting function")
140
  shap_values = explainer([text])
141
 
142
  # Dimensions are (batch size, text size, number of classes)
 
135
  # for interpretation.
136
  def interpretation_function(text, progress=gr.Progress(track_tqdm=True)):
137
 
138
+ progress((0,None), "Interpreting function")
139
  explainer = shap.Explainer(model_interp)
 
140
  shap_values = explainer([text])
141
 
142
  # Dimensions are (batch size, text size, number of classes)