Updates the project to support deployment on Hugging Face's free servers, including documentation and code adjustments.
Documentation: Adds a new section in both README.md and README_cn.md detailing steps for deploying the project to Hugging Face's free servers, including setting up environment variables and addressing potential limitations.
GitHub Actions: Introduces a new workflow file .github/workflows/deploy_to_huggingface.yml that automates the deployment process to Hugging Face's servers upon push to the master branch. This includes steps for setting up Python, installing dependencies, and deploying using environment variables for configuration.
Code Adjustment: Modifies src/hugchat/hugchat.py to check for environment variables specific to Hugging Face's servers at the start of the script, allowing for dynamic adjustment of the base URL based on the deployment environment.
Updates the project to support deployment on Hugging Face's free servers, including documentation and code adjustments.
README.md
andREADME_cn.md
detailing steps for deploying the project to Hugging Face's free servers, including setting up environment variables and addressing potential limitations..github/workflows/deploy_to_huggingface.yml
that automates the deployment process to Hugging Face's servers upon push to the master branch. This includes steps for setting up Python, installing dependencies, and deploying using environment variables for configuration.src/hugchat/hugchat.py
to check for environment variables specific to Hugging Face's servers at the start of the script, allowing for dynamic adjustment of the base URL based on the deployment environment.For more details, open the Copilot Workspace session.