rajistics commited on
Commit
218de8e
1 Parent(s): d0185e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -99,6 +99,11 @@ def main():
99
  max_chars=850,
100
  )
101
  print ("Before button")
 
 
 
 
 
102
  if st.button("Interpret Text"):
103
  #print_memory_usage()
104
  st.text("Output")
@@ -123,9 +128,9 @@ def main():
123
  )
124
  with word_attributions_expander:
125
  st.json(word_attributions)
126
- components.v1.html(
127
- cls_explainer.visualize()._repr_html_(), scrolling=True, height=350
128
- )
129
  print ("end of stuff")
130
 
131
 
 
99
  max_chars=850,
100
  )
101
  print ("Before button")
102
+ if st.button('Say hello'):
103
+ st.write('Why hello there')
104
+ else:
105
+ st.write('Goodbye')
106
+ print ("After test button")
107
  if st.button("Interpret Text"):
108
  #print_memory_usage()
109
  st.text("Output")
 
128
  )
129
  with word_attributions_expander:
130
  st.json(word_attributions)
131
+ #components.v1.html(
132
+ # cls_explainer.visualize()._repr_html_(), scrolling=True, height=350
133
+ #)
134
  print ("end of stuff")
135
 
136