rajistics commited on
Commit
4ed6a65
1 Parent(s): df35168

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -74,7 +74,6 @@ text = st.text_area(
74
  )
75
 
76
  if st.button("Interpret Text"):
77
- #print_memory_usage()
78
  st.text("Output")
79
  with st.spinner("Interpreting your text (This may take some time)"):
80
  print ("Interpreting text")
@@ -92,14 +91,11 @@ if st.button("Interpret Text"):
92
 
93
  if word_attributions:
94
  print ("Word Attributions")
95
- word_attributions_expander = st.beta_expander(
96
  "Click here for raw word attributions"
97
  )
98
  with word_attributions_expander:
99
  st.json(word_attributions)
100
  components.v1.html(
101
  cls_explainer.visualize()._repr_html_(), scrolling=True, height=350
102
- )
103
- print ("end of stuff")
104
-
105
- print ("end of total file")
 
74
  )
75
 
76
  if st.button("Interpret Text"):
 
77
  st.text("Output")
78
  with st.spinner("Interpreting your text (This may take some time)"):
79
  print ("Interpreting text")
 
91
 
92
  if word_attributions:
93
  print ("Word Attributions")
94
+ word_attributions_expander = st.expander(
95
  "Click here for raw word attributions"
96
  )
97
  with word_attributions_expander:
98
  st.json(word_attributions)
99
  components.v1.html(
100
  cls_explainer.visualize()._repr_html_(), scrolling=True, height=350
101
+ )