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