Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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 |
|