explosion / spacy-streamlit

👑 spaCy building blocks and visualizers for Streamlit apps
https://share.streamlit.io/ines/spacy-streamlit-demo/master/app.py
MIT License
804 stars 115 forks source link

Be able to specify port & host #16

Closed koaning closed 3 years ago

koaning commented 3 years ago

I'm currently running the spacy-streamlit app on a server. I prefer to have this on my server on my local network because otherwise my laptop gets very hot during training. In order to properly host it though I need to be able to customise the port-number as well as the host. It seems like these settings are currently missing. Would @ines you be open to these commands? I wouldn't mind picking this up.

polm commented 3 years ago

Sorry for the late reply - it'd be great to have a PR for this.

koaning commented 3 years ago

Cool. I may have a go at this later this week then 😃 !

koaning commented 3 years ago

I'm not sure if this wasn't a feature back in March, but it seems that you don't need to configure spacy-streamlit for this because streamlit basically does this out of the box.

python -m streamlit run app.py --server.port 12345 --server.address 0.0.0.0

Sooo, no need for a PR. 😅

polm commented 3 years ago

Ah, I wondered about that - I thought you wanted to specify it in code or something. Thanks for checking in any case!