gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

fixing singularity recipe gpt4free.sif

Open DaniilSarkisyan opened this issue 2 years ago • 0 comments
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:

  1. Singularity complained about unknown section "%expose", so I changed it to
%environment
   DEBIAN_FRONTEND=noninteractive
   PORT=8501
  1. 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.

DaniilSarkisyan avatar May 03 '23 09:05 DaniilSarkisyan