RasaHQ / rasalit

Visualizations and helpers to improve and debug machine learning models for Rasa Open Source
Apache License 2.0
305 stars 62 forks source link

How can I run all features at same time on one port using single command? #58

Open mishra011 opened 3 years ago

mishra011 commented 3 years ago

I can see that I can run all features separately on different ports, but I want all of them to run together using one command and used one port.

koaning commented 3 years ago

You'd need to run something like nginx in front of it as a proxy. This is possible, but not super obvious to get right.

mishra011 commented 3 years ago

@koaning Yes, we can do it, we can run all of them separately on different ports then use a reverse proxy to combine them on one port. But I was wishing since most people will be using all of them, so instead of running all 4 separately, shouldn't we have a feature to run all of them at once then use them accordingly.

koaning commented 3 years ago

You're the first person suggesting to use all views at the same time actually. I'm open to a tutorial for the readme but I doubt streamlit open aohrce allows you to spin up multiple apps on a single port.

mishra011 commented 3 years ago

I think all views at the same place can be a nice feature if streamlit supports it.

drewsilcock commented 3 years ago

I agree this would be a very useful feature to make the tool more user-friendly and easier to deploy for general use rather than individual developers or data scientists playing around with it.

In the meantime it would be helpful to have a Dockerfile with an image for each tool, that way you could easily spin all of the tools at the same time along with an nginx reverse proxy using Docker Compose, without needing to change any Python code.

koaning commented 3 years ago

I'll gladly review any PR for a Dockerfile that does this.

koaning commented 3 years ago

This might also make it easy to ship the bulk labelling tool now that I think of it. Althought probably best to keep as a separate Dockerfile.

drewsilcock commented 2 years ago

It would also be possible to implement a sidebar navigation like this other repo - awesome-streamlit.

See: https://github.com/MarcSkovMadsen/awesome-streamlit/blob/be454e29c35a9a1a760b1737a5176a47f4f9717b/app.py#L5-L30

drewsilcock commented 2 years ago

Pushed a PR containing a Dockerfile, docker-compose.yaml and Nginx configuration for this reverse proxying solution: #60.