Hi,
I am working on a binary text-classifier and I wanted to display the weights of the classifier using eli5, specifically eli5.show_weights().
show_weights() returns the following object: <IPython.core.display.HTML object>.
I was my understanding that I should be able to display this HTML-object in a streamlit dashboard. However, every time I try it, I get the following error message:
“”"
components.html(weights.data)
Traceback (most recent call last):
File “”, line 1, in
components.html(weights.data)
File “C:\Users\mkp\Anaconda3\lib\site-packages\streamlit\DeltaGenerator.py”, line 127, in wrapped_method
return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index)
File “C:\Users\mkp\Anaconda3\lib\site-packages\streamlit\DeltaGenerator.py”, line 398, in _enqueue_new_element_delta
rv = marshall_element(msg.delta.new_element)
File “C:\Users\mkp\Anaconda3\lib\site-packages\streamlit\DeltaGenerator.py”, line 125, in marshall_element
return method(dg, element, *args, **kwargs)
File “C:\Users\mkp\Anaconda3\lib\site-packages\streamlit\DeltaGenerator.py”, line 1612, in _html
element.iframe,
AttributeError: iframe
“”"
If I try the example from streamlit’s docs, I get the same error message:
components.html(“”"
Tweets by streamlit
“”"
)