Hellisotherpeople commited on
Commit
7cdbd19
1 Parent(s): 25f7388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -93,7 +93,7 @@ else:
93
  model_name = form.text_area("Enter the name of the pre-trained model from transformers that we are using for Question Answering", value = "deepset/roberta-base-squad2")
94
 
95
  form.header("Model Explanation Display Settings")
96
- output_width = form.number_input("Enter the number of pixels for width of model explanation html display", value = 500)
97
  output_height = form.number_input("Enter the number of pixels for height of model explanation html display", value = 1000)
98
  form.form_submit_button("Submit")
99
 
@@ -157,6 +157,6 @@ else:
157
 
158
 
159
  the_plot = shap.plots.text(shap_values, display = False)
160
- st.caption("Scroll to see the full output!")
161
  components.html(the_plot, height = output_height, width = output_width, scrolling = True)
162
 
 
93
  model_name = form.text_area("Enter the name of the pre-trained model from transformers that we are using for Question Answering", value = "deepset/roberta-base-squad2")
94
 
95
  form.header("Model Explanation Display Settings")
96
+ output_width = form.number_input("Enter the number of pixels for width of model explanation html display", value = 800)
97
  output_height = form.number_input("Enter the number of pixels for height of model explanation html display", value = 1000)
98
  form.form_submit_button("Submit")
99
 
 
157
 
158
 
159
  the_plot = shap.plots.text(shap_values, display = False)
160
+ st.caption("The plot is interactive! Try Hovering over or clicking on the input or output text")
161
  components.html(the_plot, height = output_height, width = output_width, scrolling = True)
162