rajistics commited on
Commit
d0185e8
1 Parent(s): 2f3e71b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -101,9 +101,9 @@ def main():
101
  print ("Before button")
102
  if st.button("Interpret Text"):
103
  #print_memory_usage()
104
-
105
  st.text("Output")
106
  with st.spinner("Interpreting your text (This may take some time)"):
 
107
  if explanation_class_choice != "predicted":
108
  word_attributions = cls_explainer(
109
  text,
@@ -117,6 +117,7 @@ def main():
117
  )
118
 
119
  if word_attributions:
 
120
  word_attributions_expander = st.beta_expander(
121
  "Click here for raw word attributions"
122
  )
@@ -125,6 +126,7 @@ def main():
125
  components.v1.html(
126
  cls_explainer.visualize()._repr_html_(), scrolling=True, height=350
127
  )
 
128
 
129
 
130
  if __name__ == "__main__":
 
101
  print ("Before button")
102
  if st.button("Interpret Text"):
103
  #print_memory_usage()
 
104
  st.text("Output")
105
  with st.spinner("Interpreting your text (This may take some time)"):
106
+ print ("Interpreting text")
107
  if explanation_class_choice != "predicted":
108
  word_attributions = cls_explainer(
109
  text,
 
117
  )
118
 
119
  if word_attributions:
120
+ print ("Word Attributions")
121
  word_attributions_expander = st.beta_expander(
122
  "Click here for raw word attributions"
123
  )
 
126
  components.v1.html(
127
  cls_explainer.visualize()._repr_html_(), scrolling=True, height=350
128
  )
129
+ print ("end of stuff")
130
 
131
 
132
  if __name__ == "__main__":