How do I display keras’ model.summary() on Streamlit app?
The table currently displays on the terminal.
Is there another way around it, like generating a report instead of table?
Hi @Dominion_Gate, welcome to the community!!
If you take a look at the docstring of
model.summary(), you’ll see that it has a
print_fn argument that defaults to Python’s
You can instead direct it to
st.text like so:
model.summary(print_fn=lambda x: st.text(x))
Thank you very much it worked fantastically.
I must commend the Streamlit crew. You guys are doing a fantastic job. I can’t wait to enjoy the benefits of your recent merger with Snowflake. God bless you guys. With Streamlit I can build or automate anything.
Thank you so much