Spaces:
Runtime error
Runtime error
Commit
·
0ea1363
1
Parent(s):
610afda
Hopefully fixed shi
Browse files- Dockerfile +4 -2
- start.sh +0 -3
- tld/gen_img.py +0 -3
Dockerfile
CHANGED
@@ -2,11 +2,13 @@ FROM python:3.11
|
|
2 |
|
3 |
WORKDIR /api
|
4 |
|
5 |
-
|
6 |
-
|
7 |
RUN mkdir /api/cache
|
8 |
RUN chmod a+rwx /api/cache
|
9 |
|
|
|
|
|
10 |
EXPOSE 7860
|
11 |
|
12 |
CMD ["bash", "start.sh"]
|
|
|
2 |
|
3 |
WORKDIR /api
|
4 |
|
5 |
+
RUN pip install --upgrade pip
|
6 |
+
RUN pip install -r requirements.txt
|
7 |
RUN mkdir /api/cache
|
8 |
RUN chmod a+rwx /api/cache
|
9 |
|
10 |
+
COPY ./ /api/
|
11 |
+
|
12 |
EXPOSE 7860
|
13 |
|
14 |
CMD ["bash", "start.sh"]
|
start.sh
CHANGED
@@ -1,4 +1 @@
|
|
1 |
-
pip install --upgrade pip
|
2 |
-
pip install -r requirements.txt
|
3 |
-
|
4 |
python tld/gen_img.py
|
|
|
|
|
|
|
|
|
1 |
python tld/gen_img.py
|
tld/gen_img.py
CHANGED
@@ -1,12 +1,9 @@
|
|
1 |
import io
|
2 |
import asyncio
|
3 |
import os
|
4 |
-
from PIL import Image
|
5 |
-
import numpy as np
|
6 |
|
7 |
import torch
|
8 |
import torchvision.transforms as transforms
|
9 |
-
from torchvision import utils as vutils
|
10 |
|
11 |
from diffusion import DiffusionTransformer, LTDConfig
|
12 |
|
|
|
1 |
import io
|
2 |
import asyncio
|
3 |
import os
|
|
|
|
|
4 |
|
5 |
import torch
|
6 |
import torchvision.transforms as transforms
|
|
|
7 |
|
8 |
from diffusion import DiffusionTransformer, LTDConfig
|
9 |
|