Integrating What-If-Tool Widget in Streamlit App

Hi, I have been developing a Streamlit app for Machine Learning models and want to integrate the Widget provided by the What-If Tool (link: What-If Tool).

For an example code of the Widget that I want to integrate please see the link: Example Code of Widget on Google Colab

Can anyone please help me on how to include the exact same widget in streamlit application with all the interactive functionalities maintained.

Thanks in Advance!!

Same Issue with me also. Did anyone else has come across this requirement.
Any solution would be helpful!!!

Hi @Arko and @Navyasree_Yadavalli :grinning_face_with_smiling_eyes:

I’ve created a Streamlit component (work in progress) that embeds TensorBoard in Streamlit apps: streamlit-tensorboard

Although I haven’t tested out the What-If Tool yet, it is accessible interactively within streamlit-tensorboard:

The component is missing a lot of command line arguments that you would usually pass, such as the -whatif-data-dir=PATH flag, but you should be able to use the What-If Tool graphically: Getting Started in TensorBoard

Feel free to submit PRs if you have ideas for additional features!

Happy Streamlit’ing! :balloon:
Snehan

1 Like

@snehankekre yay lots of new components!

Feel free to add streamlit-tensorboard in the In development category of the Components Tracker :stuck_out_tongue:

2 Likes

@andfanilo Thanks for the idea, done! I’ll make a post about it in 2-3 weeks, once I’ve had time to work on it a bit more :wink:

1 Like