runtime error

Space not ready. Reason: Error, exitCode: 1, message: None

Container logs:

Matplotlib created a temporary config/cache directory at /tmp/matplotlib-h5lxx52s because the default path (/home/user/.cache/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
Cloning into 'CLIP'...
Cloning into 'guided-diffusion'...
WARNING: The directory '/home/user/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Obtaining file:///home/user/app/CLIP
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: ftfy in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from clip==1.0) (6.1.1)
Requirement already satisfied: regex in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from clip==1.0) (2022.6.2)
Requirement already satisfied: tqdm in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from clip==1.0) (4.64.0)
Requirement already satisfied: torch in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from clip==1.0) (1.11.0)
Requirement already satisfied: torchvision in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from clip==1.0) (0.12.0)
Requirement already satisfied: wcwidth>=0.2.5 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from ftfy->clip==1.0) (0.2.5)
Requirement already satisfied: typing-extensions in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from torch->clip==1.0) (4.2.0)
Requirement already satisfied: numpy in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from torchvision->clip==1.0) (1.22.4)
Requirement already satisfied: requests in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from torchvision->clip==1.0) (2.27.1)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from torchvision->clip==1.0) (9.1.1)
Requirement already satisfied: idna<4,>=2.5 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from requests->torchvision->clip==1.0) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from requests->torchvision->clip==1.0) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from requests->torchvision->clip==1.0) (2022.5.18.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from requests->torchvision->clip==1.0) (1.26.9)
Installing collected packages: clip
  Running setup.py develop for clip
Successfully installed clip-1.0
WARNING: The directory '/home/user/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Obtaining file:///home/user/app/guided-diffusion
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting blobfile>=1.0.5
  Downloading blobfile-1.3.1-py3-none-any.whl (70 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.1/70.1 kB 36.9 MB/s eta 0:00:00
Requirement already satisfied: torch in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from guided-diffusion==0.0.0) (1.11.0)
Requirement already satisfied: tqdm in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from guided-diffusion==0.0.0) (4.64.0)
Requirement already satisfied: filelock~=3.0 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from blobfile>=1.0.5->guided-diffusion==0.0.0) (3.7.1)
Requirement already satisfied: urllib3~=1.25 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from blobfile>=1.0.5->guided-diffusion==0.0.0) (1.26.9)
Collecting xmltodict~=0.12.0
  Downloading xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)
Collecting pycryptodomex~=3.8
  Downloading pycryptodomex-3.14.1-cp35-abi3-manylinux2010_x86_64.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 102.0 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from torch->guided-diffusion==0.0.0) (4.2.0)
Installing collected packages: xmltodict, pycryptodomex, blobfile, guided-diffusion
  Running setup.py develop for guided-diffusion
Successfully installed blobfile-1.3.1 guided-diffusion-0.0.0 pycryptodomex-3.14.1 xmltodict-0.12.0
WARNING: The directory '/home/user/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Requirement already satisfied: lpips in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (0.1.4)
Requirement already satisfied: tqdm>=4.28.1 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from lpips) (4.64.0)
Requirement already satisfied: torchvision>=0.2.1 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from lpips) (0.12.0)
Requirement already satisfied: numpy>=1.14.3 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from lpips) (1.22.4)
Requirement already satisfied: scipy>=1.0.1 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from lpips) (1.8.1)
Requirement already satisfied: torch>=0.4.0 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from lpips) (1.11.0)
Requirement already satisfied: typing-extensions in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from torch>=0.4.0->lpips) (4.2.0)
Requirement already satisfied: requests in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from torchvision>=0.2.1->lpips) (2.27.1)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from torchvision>=0.2.1->lpips) (9.1.1)
Requirement already satisfied: charset-normalizer~=2.0.0 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from requests->torchvision>=0.2.1->lpips) (2.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from requests->torchvision>=0.2.1->lpips) (1.26.9)
Requirement already satisfied: idna<4,>=2.5 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from requests->torchvision>=0.2.1->lpips) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages (from requests->torchvision>=0.2.1->lpips) (2022.5.18.1)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 2108M    0 9712k    0     0  13.2M      0  0:02:39 --:--:--  0:02:39 13.1M
  2 2108M    2 46.8M    0     0  27.4M      0  0:01:16  0:00:01  0:01:15 27.3M
  4 2108M    4 92.0M    0     0  33.6M      0  0:01:02  0:00:02  0:01:00 33.6M
  6 2108M    6  140M    0     0  37.9M      0  0:00:55  0:00:03  0:00:52 37.9M
  9 2108M    9  192M    0     0  40.4M      0  0:00:52  0:00:04  0:00:48 40.4M
 11 2108M   11  242M    0     0  42.3M      0  0:00:49  0:00:05  0:00:44 46.5M
 13 2108M   13  292M    0     0  43.4M      0  0:00:48  0:00:06  0:00:42 48.9M
 16 2108M   16  344M    0     0  44.4M      0  0:00:47  0:00:07  0:00:40 50.3M
 18 2108M   18  394M    0     0  45.2M      0  0:00:46  0:00:08  0:00:38 50.7M
 21 2108M   21  444M    0     0  45.7M      0  0:00:46  0:00:09  0:00:37 50.7M
 23 2108M   23  496M    0     0  46.2M      0  0:00:45  0:00:10  0:00:35 50.5M
 25 2108M   25  546M    0     0  46.6M      0  0:00:45  0:00:11  0:00:34 50.9M
 28 2108M   28  596M    0     0  46.9M      0  0:00:44  0:00:12  0:00:32 50.8M
 30 2108M   30  648M    0     0  47.1M      0  0:00:44  0:00:13  0:00:31 50.4M
 33 2108M   33  698M    0     0  47.4M      0  0:00:44  0:00:14  0:00:30 50.9M
 35 2108M   35  748M    0     0  47.6M      0  0:00:44  0:00:15  0:00:29 50.6M
 37 2108M   37  800M    0     0  47.7M      0  0:00:44  0:00:16  0:00:28 50.3M
 40 2108M   40  850M    0     0  48.0M      0  0:00:43  0:00:17  0:00:26 50.7M
 42 2108M   42  891M    0     0  47.5M      0  0:00:44  0:00:18  0:00:26 48.7M
 44 2108M   44  930M    0     0  47.1M      0  0:00:44  0:00:19  0:00:25 46.0M
 46 2108M   46  978M    0     0  47.1M      0  0:00:44  0:00:20  0:00:24 45.8M
 48 2108M   48 1028M    0     0  47.2M      0  0:00:44  0:00:21  0:00:23 45.5M
 51 2108M   51 1076M    0     0  47.3M      0  0:00:44  0:00:22  0:00:22 45.0M
 53 2108M   53 1126M    0     0  47.4M      0  0:00:44  0:00:23  0:00:21 47.1M
 55 2108M   55 1176M    0     0  47.5M      0  0:00:44  0:00:24  0:00:20 49.1M
 58 2108M   58 1224M    0     0  47.6M      0  0:00:44  0:00:25  0:00:19 49.3M
 60 2108M   60 1274M    0     0  47.7M      0  0:00:44  0:00:26  0:00:18 49.7M
 62 2108M   62 1324M    0     0  47.7M      0  0:00:44  0:00:27  0:00:17 49.4M
 65 2108M   65 1374M    0     0  47.8M      0  0:00:44  0:00:28  0:00:16 49.7M
 67 2108M   67 1424M    0     0  47.9M      0  0:00:43  0:00:29  0:00:14 50.0M
 69 2108M   69 1476M    0     0  48.0M      0  0:00:43  0:00:30  0:00:13 50.2M
 72 2108M   72 1528M    0     0  48.1M      0  0:00:43  0:00:31  0:00:12 50.2M
 74 2108M   74 1578M    0     0  48.2M      0  0:00:43  0:00:32  0:00:11 51.0M
 77 2108M   77 1628M    0     0  48.2M      0  0:00:43  0:00:33  0:00:10 50.5M
 79 2108M   79 1679M    0     0  48.3M      0  0:00:43  0:00:34  0:00:09 50.8M
 82 2108M   82 1730M    0     0  48.4M      0  0:00:43  0:00:35  0:00:08 50.9M
 84 2108M   84 1780M    0     0  48.4M      0  0:00:43  0:00:36  0:00:07 50.6M
 86 2108M   86 1832M    0     0  48.5M      0  0:00:43  0:00:37  0:00:06 50.4M
 89 2108M   89 1882M    0     0  48.6M      0  0:00:43  0:00:38  0:00:05 50.9M
 91 2108M   91 1932M    0     0  48.6M      0  0:00:43  0:00:39  0:00:04 50.5M
 94 2108M   94 1984M    0     0  48.6M      0  0:00:43  0:00:40  0:00:03 50.5M
 96 2108M   96 2029M    0     0  48.6M      0  0:00:43  0:00:41  0:00:02 50.1M
 98 2108M   98 2067M    0     0  48.3M      0  0:00:43  0:00:42  0:00:01 47.3M
100 2108M  100 2108M    0     0  48.3M      0  0:00:43  0:00:43 --:--:-- 46.5M

  0%|          | 0.00/2.15M [00:00<?, ?B/s]
100%|██████████| 2.15M/2.15M [00:00<00:00, 58.8MB/s]
/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `optional` parameter is deprecated, and it has no effect
  warnings.warn(value)
/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/interface.py:289: UserWarning: Currently, only the 'default' theme is supported.
  warnings.warn("Currently, only the 'default' theme is supported.")
Cache at /home/user/app/gradio_cached_examples/log.csv not found. Caching now in 'gradio_cached_examples/' directory.
Using device: cuda:0
Traceback (most recent call last):
  File "app.py", line 225, in <module>
    iface = gr.Interface(inference, inputs=["text",gr.inputs.Image(type="file", label='initial image (optional)', optional=True),gr.inputs.Slider(minimum=0, maximum=45, step=1, default=10, label="skip_timesteps"), gr.inputs.Slider(minimum=0, maximum=3000, step=1, default=600, label="clip guidance scale (Controls how much the image should look like the prompt)"), gr.inputs.Slider(minimum=0, maximum=1000, step=1, default=0, label="tv_scale (Controls the smoothness of the final output)"), gr.inputs.Slider(minimum=0, maximum=1000, step=1, default=0, label="range_scale (Controls how far out of range RGB values are allowed to be)"), gr.inputs.Slider(minimum=0, maximum=1000, step=1, default=0, label="init_scale (This enhances the effect of the init image)"), gr.inputs.Number(default=0, label="Seed"), gr.inputs.Image(type="file", label='image prompt (optional)', optional=True), gr.inputs.Slider(minimum=50, maximum=500, step=1, default=50, label="timestep respacing"),gr.inputs.Slider(minimum=1, maximum=64, step=1, default=32, label="cutn")], outputs=["image","video"], title=title, description=description, article=article, examples=[["coral reef city by artistation artists", "coralreef.jpeg", 0, 1000, 150, 50, 0, 0, "coralreef.jpeg", 90, 32]])
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/interface.py", line 423, in __init__
    cache_interface_examples(self)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/process_examples.py", line 51, in cache_interface_examples
    raise e
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/process_examples.py", line 47, in cache_interface_examples
    prediction = process_example(interface, example_id)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/process_examples.py", line 29, in process_example
    prediction = interface.process(raw_input)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/interface.py", line 718, in process
    predictions = self.run_prediction(processed_input)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/interface.py", line 682, in run_prediction
    prediction = predict_fn(*processed_input)
  File "app.py", line 113, in inference
    clip_model = clip.load('ViT-B/16', jit=False)[0].eval().requires_grad_(False).to(device)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/clip/clip.py", line 119, in load
    model_path = _download(_MODELS[name])
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/clip/clip.py", line 44, in _download
    os.makedirs(root, exist_ok=True)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/os.py", line 223, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/user/.cache/clip'