gpt4free
gpt4free copied to clipboard
fixing singularity recipe gpt4free.sif
trafficstars
My latest "community edition" of singularity on Ubuntu 22.04.1 was not able to build from "gpt4free.sif" recipe. This is how I fixed it:
- Singularity complained about unknown section "%expose", so I changed it to
%environment
DEBIAN_FRONTEND=noninteractive
PORT=8501
- I had to change
%startscript
exec streamlit run streamlit_app.py
to
%runscript
exec streamlit run /gpt4free/streamlit_app.py
so "streamlit" will run and find "streamlit_app.py" in the right location.