planolyzer / Spacefile
chelleboyer's picture
Update port configuration to 7860 for Hugging Face Spaces
d94d1c0
Raw
History Blame Contribute Delete
445 Bytes
# Spacefile Docs: https://huggingface.co/docs/hub/spaces-config-reference
image: python:3.11
sdk: docker
python_version: "3.11"
# Set up the environment
run: |
pip install -r requirements.txt
chainlit run app.py --host 0.0.0.0 --port 7860
# Set environment variables
env:
PYTHONPATH: ${PYTHONPATH}:${SPACE_ID}
HF_HUB_ENABLE_HF_TRANSFER: 1
CHAINLIT_SERVER_HOST: 0.0.0.0
CHAINLIT_SERVER_PORT: 7860
# Expose the port
ports:
- 7860