Spaces:
Sleeping
Sleeping
Edward J. Schwartz
commited on
Commit
·
aa5f7c5
1
Parent(s):
1718a54
Track tqdm not working?
Browse files
app.py
CHANGED
@@ -136,6 +136,7 @@ with gr.Blocks() as demo:
|
|
136 |
def interpretation_function(text, progress=gr.Progress(track_tqdm=True)):
|
137 |
|
138 |
explainer = shap.Explainer(model_interp)
|
|
|
139 |
shap_values = explainer([text])
|
140 |
|
141 |
# Dimensions are (batch size, text size, number of classes)
|
|
|
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)
|