The repo is for sharing small exploratory projects and shouldn't be considered robust production code.
ssh to the server under the role account (or sudo su - <user>) after logging in as yourself.
Once you're in the server you can use the following scripts to start and stop the gradio interfaces. These scripts are in the home directory of the role account. (~)
~/gradio-control-data-7860.sh
~/gradio-control-multi-file-readme-7860.sh
~/gradio-control-multi-llm-readme-7860.sh
These are all start/stop/status scripts for a gradio interface. The applications they control are the following:
- gradio-control-data-7860.sh is the start/stop for analyzing and making suggestions for data curation for a tabular data file.
- gradio-control-multi-file-readme-7860.sh is the start/stop for the app that can take multiple files and attempt to create a readme file based on what it can understand about them.
- gradio-control-multi-llm-readme-7860.sh is the start/stop for the app that takes a data file and can analyze it with Frictionless Data and then send through 2 LLMs to try to make a readme file.
- start will start the server on the port.
- stop will stop the server on the port.
- status will show the status of the server on the port.
- restart will stop and start the server on the port.
If you want to switch from using one to another
- stop the current server, if any
- start the new server
- go to the new server's URL in a browser to see the new interface (must be on the VPN and refresh page)
The lightest weight way to handle locked dependencies right now is with pip-tools
which uses requirements.in
as a list of dependencies and then writes requirements.txt
as the locked version of libraries. To install pip tools: pip install pip-tools
.
We probably need more than just pip alone since for dependabot to function fully, it needs to see the full set of dependencies and versions someplace and pip-tools will do this without a lot of extra overhead. In the future we may go towards a more robust solution.
To create the locked version of the libraries:
pip-compile requirements.in # creates requirements.txt
And to upgrade
pip-compile requirements.in --upgrade # updates requirements.txt
To install the dependencies:
pip-sync requirements.txt